Function at 0x415380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46454c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x481088]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0xc]
push ecx
push 0x47facc
push edx
mov dword [esp + 0x184], 0
call fcn.00433596
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.004335a9
mov eax, dword [0x481088]
mov dword [esp + 0x18], eax
mov edi, dword [ebp + 8]
mov byte [esp + 0x178], 1
cmp edi, 1
jne 0x41545a
mov ecx, dword [esi + 0x34c]
push 0x47fac8
add ecx, 0xa0
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0043696b
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x184], 2
call fcn.00436905
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 3
call fcn.0043680f
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 2
call fcn.00436722
mov byte [esp + 0x178], 1
lea ecx, [esp + 0x10]
jmp 0x415670
cmp edi, 2
jne 0x4154c6
mov eax, dword [esi + 0x34c]
push 0x47fab0
add eax, 0xa0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0043696b
lea edx, [esp + 0xc]
mov byte [esp + 0x178], 4
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00436905
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 5
call fcn.0043680f
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 4
call fcn.00436722
mov byte [esp + 0x178], 1
lea ecx, [esp + 0x10]
jmp 0x415670
cmp edi, 3
jne 0x415533
mov ecx, dword [esi + 0x34c]
push 0x47fa98
add ecx, 0xa0
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0043696b
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x184], 6
call fcn.00436905
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 7
call fcn.0043680f
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 6
call fcn.00436722
mov byte [esp + 0x178], 1
lea ecx, [esp + 0x10]
jmp 0x415670
cmp edi, 4
jne 0x41559f
mov eax, dword [esi + 0x34c]
push 0x47fa80
add eax, 0xa0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0043696b
lea edx, [esp + 0xc]
mov byte [esp + 0x178], 8
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00436905
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 9
call fcn.0043680f
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 8
call fcn.00436722
mov byte [esp + 0x178], 1
lea ecx, [esp + 0x10]
jmp 0x415670
cmp edi, 5
jne 0x415609
mov ecx, dword [esi + 0x34c]
push 0x47fa68
add ecx, 0xa0
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0043696b
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x184], 0xa
call fcn.00436905
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xb
call fcn.0043680f
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 0xa
call fcn.00436722
mov byte [esp + 0x178], 1
lea ecx, [esp + 0x10]
jmp 0x415670
cmp edi, 6
jne 0x415675
mov eax, dword [esi + 0x34c]
push 0x47fa50
add eax, 0xa0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0043696b
lea edx, [esp + 0xc]
mov bl, 0xc
push edx
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x180], bl
push eax
call fcn.00436905
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xd
call fcn.0043680f
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], bl
call fcn.00436722
mov byte [esp + 0x178], 1
lea ecx, [esp + 0x10]
call fcn.00436722
mov ecx, dword [esp + 0x18]
push 0x480030
push ecx
call fcn.0042061f
mov ebx, eax
xor eax, eax
add esp, 8
cmp ebx, eax
mov dword [esp + 0x14], ebx
jne 0x415737
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 0x480264
push eax
call fcn.004369df
push 0x480258
lea ecx, [esp + 0x18]
mov bl, 0xe
push eax
push ecx
mov byte [esp + 0x184], bl
call fcn.0043696b
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x184], 0xf
call fcn.00442aa3
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], bl
call fcn.00436722
lea ecx, [esp + 0x10]
mov byte [esp + 0x178], 1
call fcn.00436722
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], 0
call fcn.00436722
lea ecx, [esp + 0xc]
mov dword [esp + 0x178], 0xffffffff
call fcn.00436722
xor eax, eax
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
push 0xffffffffffffffd0
push ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.004216a6
push ebx
push 1
lea edx, [esp + 0x70]
push 0x30
push edx
call fcn.004213fa
mov ecx, dword [esi + 0x4c]
add esp, 0x1c
mov eax, ecx
shl eax, 4
mov edx, dword [eax + esi + 0x68]
test edx, edx
je 0x415883
fld qword [esp + 0x6c]
fcomp qword [0x468850]
fnstsw ax
test ah, 0x41
jne 0x4157e1
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x4157eb
fld qword [esp + 0x6c]
fchs
fstp qword [esp + 0x1c]
fld qword [esp + 0x84]
fcomp qword [0x468850]
fld qword [esp + 0x84]
fnstsw ax
test ah, 0x41
je 0x415808
fchs
fld qword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41581b
fstp st(0)
fld qword [esp + 0x1c]
fcom qword [0x4699e8]
fnstsw ax
test ah, 0x41
jne 0x415873
fld qword [0x468910]
fdiv st(1)
add ecx, 6
shl ecx, 4
fdiv qword [esi + 0x288]
fstp qword [ecx + esi]
fstp st(0)
call fcn.0043c102
test eax, eax
je 0x415853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x415855
xor eax, eax
mov ecx, dword [esi + 0x4c]
add ecx, 6
shl ecx, 4
mov edx, dword [ecx + esi]
mov dword [eax + 0xc0], edx
mov ecx, dword [ecx + esi + 4]
mov dword [eax + 0xc4], ecx
jmp 0x415875
fstp st(0)
mov edx, dword [esi + 0x4c]
shl edx, 4
mov dword [edx + esi + 0x68], 0
mov eax, dword [esi + 0x4c]
add eax, 6
shl eax, 4
fld qword [eax + esi]
lea eax, [esp + 0x5c]
fstp qword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
push edi
push eax
mov ecx, esi
call fcn.00416390
xor edi, edi
push edi
push edi
push ebx
call fcn.004216a6
mov eax, dword [esi + 0x268]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x415b6b
mov ebx, dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x28], edi
mov ecx, dword [esi + 0x330]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x20]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x2c]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], edx
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [esi + 0x34c]
xor edi, edi
mov ecx, dword [ecx + 0x5c]
fld qword [ecx + edx*8 + 0x10]
fsub qword [esi + 0x2c0]
lea ecx, [ecx + edx*8]
fstp qword [esp + 0x9c]
fld qword [ecx + 0x18]
fsub qword [esi + 0x2c8]
fstp qword [esp + 0x94]
fld qword [eax + 0x30]
fmul qword [0x4689d0]
fstp qword [esp + 0xa4]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xb0]
push edx
push 1
push 0x10
push eax
call fcn.004213fa
add esp, 0x10
cmp eax, 1
jb 0x4156f9
fld qword [esp + 0x2c]
fmul qword [esp + 0x44]
fadd qword [esp + 0x9c]
fld qword [esp + 0x2c]
fmul qword [esp + 0x3c]
fadd qword [esp + 0x94]
fstp qword [esp + 0x4c]
fld qword [esp + 0xb0]
fmul qword [esp + 0x54]
fld st(0)
fmul qword [esp + 0x3c]
fsubr st(2)
fmul qword [esi + 0x288]
fadd qword [esi + 0x290]
call fcn.00420cbc
fmul qword [esp + 0x44]
mov dword [esp + edi + 0xc0], eax
fadd qword [esp + 0x4c]
fmul qword [esi + 0x288]
fadd qword [esi + 0x298]
call fcn.00420cbc
fld qword [esp + 0xb8]
fmul qword [esp + 0x54]
mov dword [esp + edi + 0xc4], eax
fst qword [esp + 0x8c]
fmul qword [esp + 0x3c]
fsubp st(1)
fld qword [esp + 0x8c]
fmul qword [esp + 0x44]
fadd qword [esp + 0x4c]
fstp qword [esp + 0x4c]
fmul qword [esi + 0x288]
fadd qword [esi + 0x290]
call fcn.00420cbc
fld qword [esp + 0x4c]
fmul qword [esi + 0x288]
mov dword [esp + edi + 0x118], eax
fadd qword [esi + 0x298]
call fcn.00420cbc
fld qword [esp + 0x2c]
fadd qword [esp + 0xa4]
mov dword [esp + edi + 0x11c], eax
add edi, 8
cmp edi, 0x50
fstp qword [esp + 0x2c]
jle 0x41595b
xor eax, eax
mov ecx, vtable.CPen.0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
push 0xff00ff
push 1
push eax
mov byte [esp + 0x184], 0x11
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.0043ed13
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x240]
call fcn.0043e38c
mov edi, eax
mov eax, dword [esi + 0x240]
lea edx, [esp + 0xc0]
push 0xb
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_Polyline]
push 0x8000
push 1
push 0
call ebx
push eax
lea ecx, [esp + 0x38]
call fcn.0043ed13
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x240]
call fcn.0043e38c
mov eax, dword [esi + 0x240]
lea edx, [esp + 0x118]
push 0xb
push edx
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_Polyline]
mov ecx, dword [esi + 0x240]
push edi
call fcn.0043e38c
mov edi, vtable.CGdiObject.0
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 0x12
call fcn.0043ed6a
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x178], 0x13
call fcn.0043ed6a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x268]
inc eax
add edx, 0x38
cmp eax, ecx
mov byte [esp + 0x178], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], edx
jl 0x4158d3
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00420a56
mov eax, dword [esi + 0x58]
add esp, 4
test eax, eax
jne 0x415b89
push 0x47fa14
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 1
jne 0x415b9d
push 0x47f8fc
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 2
jne 0x415bb1
push 0x47f8f0
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 3
jne 0x415bc5
push 0x47f8e4
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 4
jne 0x415bd9
push 0x47f8d4
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 5
jne 0x415bed
push 0x47f8c8
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 6
jne 0x415c01
push 0x47f8bc
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 7
jne 0x415c15
push 0x47f8b0
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 8
jne 0x415c29
push 0x47f8a4
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 9
jne 0x415c3d
push 0x47f9b8
lea ecx, [esp + 0x10]
call fcn.0043685f
cmp dword [esi + 0x58], 0xa
jne 0x415c51
push 0x47f9ac
lea ecx, [esp + 0x10]
call fcn.0043685f
mov eax, dword [esp + 0xc]
mov esi, dword [esi + 0x240]
mov ecx, dword [eax - 8]
mov edx, dword [esi]
push ecx
push eax
push 0
push 0
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], 0
call fcn.00436722
lea ecx, [esp + 0xc]
mov dword [esp + 0x178], 0xffffffff
call fcn.00436722
mov ecx, dword [esp + 0x170]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4