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

Disassembly:
sub esp, 0x78
mov eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x30], esi
jne 0x41936e
mov dword [0xb5f6aa], esi
mov dword [0xa7bd3e], esi
mov dword [0xb5f6ae], esi
mov dword [0xa7bd42], esi
mov eax, dword [esp + 0x90]
mov dword [0xb5f696], 0
cmp eax, esi
mov dword [0xb5f69a], 0xbff00000
mov dword [0xb5f69e], 0
mov dword [0xb5f6a2], 0xbff00000
jne 0x4193c1
push 4
call fcn.00415950
push esi
push esi
push 1
call fcn.00446e00
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov eax, 1
push 0x30
push 0x42
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], 0x400
mov word [esp + 0x74], ax
mov word [esp + 0x76], ax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x18000
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x70], 0xfffffd00
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x5c], ebx
jne 0x41942e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov ecx, 0xa
lea esi, [esp + 0x60]
mov edi, ebp
lea eax, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
add eax, 4
mov cl, 0xff
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov eax, dword [0xa77b48]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
mov esi, eax
push 0
push ebp
push esi
mov dword [esp + 0x70], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
push esi
test ebp, ebp
mov dword [esp + 0x48], ebp
jne 0x4194b4
mov edx, dword [0xa77b48]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
mov dword [esp + 0x40], edi
jne 0x4194f0
mov eax, dword [0xa77b48]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebp
test eax, eax
jne 0x419536
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [0xa77b48]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret
call fcn.00449110
mov eax, dword [0xba060e]
fild dword [0xba0612]
cmp eax, 3
jne 0x419551
fmul qword [0x46c4f0]
fld dword [0xb5eb40]
fmul qword [0xa67540]
fmul qword [0x46c680]
fdivp st(1)
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.004603c3
add esp, 8
call fcn.00460494
mov esi, eax
mov dword [esp + 0x3c], esi
fild dword [esp + 0x3c]
fdivr qword [esp + 0x50]
fstp dword [esp + 0x20]
call fcn.00419ce0
lea edx, [esi + esi - 1]
push 0xffffff
push edx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push edi
mov dword [esp + 0x58], eax
call ebp
mov dword [esp + 0x4c], eax
mov eax, dword [0xb5da50]
imul eax, dword [0xb5da48]
mov ecx, dword [0xb5da4c]
cdq
sub eax, edx
mov ebx, ecx
imul ebx, dword [0xb5da44]
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
mov esi, eax
mov dword [esp + 0x38], ebx
shr eax, 1
and eax, 1
and esi, 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x3c], esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x419618
xor eax, eax
mov edi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jmp 0x419634
lea edx, [eax - 1]
imul edx, ecx
inc eax
imul eax, ecx
add eax, ebx
lea edx, [edx + ebx + 1]
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [esp + 0x18], edx
mov eax, edx
cmp eax, edi
mov dword [esp + 0x2c], eax
jge 0x419835
mov eax, dword [esp + 0x2c]
imul ecx, dword [0xb5da44]
cdq
idiv ebx
mov esi, edx
add ecx, esi
mov ebp, ecx
mov byte [esi + 0xb5f72a], 0
mov byte [ebp + 0xb5f72a], 0
mov byte [esi + 0xb5f7a2], 0
mov byte [ebp + 0xb5f7a2], 0
mov al, byte [esi + 0xb5f6b2]
test al, al
je 0x4196ab
mov al, byte [ebp + 0xb5f6b2]
test al, al
je 0x4196ab
fld dword [esp + 0x20]
fmul dword [0xb5eb40]
push 2
push ecx
fstp dword [esp]
push 1
push 0x7512d8
push esi
push esi
push 0
call fcn.00413da0
add esp, 0x1c
test eax, eax
jne 0x4196ba
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
jmp 0x41981a
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jl 0x4196ff
fld dword [edi*8 + 0x7512d8]
fadd dword [0x46c63c]
call fcn.00460494
fld dword [edi*8 + 0x7512dc]
fadd dword [0x46c63c]
mov dword [edi*8 + 0x746258], eax
call fcn.00460494
mov dword [edi*8 + 0x74625c], eax
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jle 0x4196c4
fld dword [esp + 0x20]
fmul dword [0xb5eb40]
push 2
push ecx
fstp dword [esp]
push 1
push 0x7512d8
push ebp
push esi
push 0
call fcn.00413da0
add esp, 0x1c
test eax, eax
jne 0x419737
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
jmp 0x41981a
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
lea ebx, [eax + eax]
cmp ecx, ebx
jg 0x41978e
mov eax, ebx
lea ebp, [ecx*8 + 0x74625c]
sub eax, ecx
lea edi, [eax*8 + 0x7512dc]
inc eax
mov dword [esp + 0x34], eax
fld dword [edi - 4]
fadd dword [0x46c63c]
call fcn.00460494
fld dword [edi]
fadd dword [0x46c63c]
mov dword [ebp - 4], eax
call fcn.00460494
mov dword [ebp], eax
mov eax, dword [esp + 0x34]
sub edi, 8
add ebp, 8
dec eax
mov dword [esp + 0x34], eax
jne 0x41975c
mov edi, dword [esp + 0x24]
mov ecx, 0x6000
xor eax, eax
inc ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
push ebx
push 0x746258
push eax
call dword [sym.imp.GDI32.dll_Polyline]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00419d30
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x4197e1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push 1
push esi
push eax
call fcn.0041a250
mov ecx, dword [esp + 0x20]
add esp, 0x10
and ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x48]
test eax, eax
je 0x419812
test byte [esp + 0x90], 2
je 0x419812
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push 0
push esi
push edx
call fcn.0041a250
mov ecx, dword [esp + 0x2c]
add esp, 0x10
and ecx, eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0xb5da4c]
inc eax
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x419640
mov esi, dword [esp + 0x3c]
mov eax, dword [0xb5da50]
imul ecx, dword [0xb5da44]
imul eax, dword [0xb5da48]
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x10]
shl ecx, 1
sar ebp, 1
test eax, eax
mov ebx, ecx
je 0x4198e2
push 1
call fcn.00419a40
add esp, 4
test ebp, ebp
jl 0x4198bb
lea ecx, [ebx + ebx*2]
mov eax, 0xb75216
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*4]
lea edx, [ecx + ecx*2]
lea ecx, [edx*4 + 0xb75216]
lea edx, [ebp + 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x2c]
mov ecx, eax
add eax, 0xc
mov esi, dword [ecx]
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x3c]
add edx, 0xc
dec ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ecx
jne 0x419890
mov esi, 1
push esi
push esi
mov dword [0xb5f6aa], esi
call fcn.00414c30
fstp qword [0xb5f696]
push esi
call fcn.00417fc0
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x419917
test esi, esi
je 0x419917
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x41991b
sub edi, eax
lea esi, [eax*8 + 0xb5ef0e]
lea ecx, [edi*8 - 5]
mov dword [esi], 0
shr ecx, 2
lea edi, [esi + 8]
mov dword [esi + 4], 0xbff00000
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x419990
push 2
call fcn.00419a40
add esp, 4
test ebp, ebp
jl 0x419967
lea ecx, [ebx + ebx*2]
mov eax, 0xb8ac12
inc ebp
lea edx, [ecx + ecx*4]
lea ebx, [ebx + edx*4]
lea ecx, [ebx + ebx*2]
lea ecx, [ecx*4 + 0xb8ac12]
mov edx, eax
mov esi, ecx
add eax, 0xc
add ecx, 0xc
mov edi, dword [edx]
dec ebp
mov dword [esi], edi
mov edi, dword [edx + 4]
mov dword [esi + 4], edi
mov edx, dword [edx + 8]
mov dword [esi + 8], edx
jne 0x41994a
mov esi, 1
push esi
push 2
mov dword [0xb5f6ae], esi
call fcn.00414c30
fstp qword [0xb5f69e]
push 2
call fcn.00417fc0
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x4199c3
test byte [esp + 0x90], 2
je 0x4199c3
cmp eax, edi
jge 0x4199c3
sub edi, eax
lea esi, [eax*8 + 0xb5f2ce]
lea ecx, [edi*8 - 5]
mov dword [esi], 0
shr ecx, 2
lea edi, [esi + 8]
mov dword [esi + 4], 0xbff00000
rep movsd dword es:[edi], dword [esi]
push 4
call fcn.00415950
push 0
push 0
push 1
call fcn.00446e00
add esp, 0x10
call fcn.00449130
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x58]
mov eax, dword [0xa77b48]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x44]
push ecx
call esi
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret