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

Disassembly:
mov eax, 0x67fcf9
call fcn.006313fc
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, dword [esp + 0x180]
lea ecx, [esp + 0xc]
push edi
push dword [esp + 0x180]
lea edi, [esp + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0058f06e
push dword [esp + 0x10]
and dword [esp + 0x174], 0
lea ecx, [esp + 0x94]
call fcn.0058f079
push dword [esp + 0x10]
lea ecx, [esp + 0x74]
mov byte [esp + 0x174], 1
call fcn.0058f079
push dword [0x757b84]
lea eax, [esp + 0x28]
mov byte [esp + 0x174], 2
push eax
lea ecx, [esp + 0x18]
call fcn.0058f212
mov eax, dword [esp + 0x1a4]
mov edx, dword [esp + 0x24]
and al, 1
mov ecx, dword [esp + 0x28]
movzx ebx, al
mov eax, dword [esp + 0x2c]
neg ebx
push 0xa
sbb ebx, ebx
add edx, 0x14
and ebx, 0xfffffffb
pop esi
add ebx, esi
add ecx, esi
add edx, ebx
mov dword [esp + 0x34], ebx
sub eax, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp edx, eax
jg 0x5e0433
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff1
mov dword [esp + 0x30], ecx
cmp ecx, eax
jg 0x5e0446
mov dword [esp + 0x30], eax
push dword [0x757b88]
lea ecx, [esp + 0x94]
call fcn.0058f47e
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.0058f15d
lea ecx, [esp + 0x10]
call fcn.0058f53a
mov eax, dword [esp + 0x1a4]
push 8
pop ecx
and eax, ecx
mov dword [esp + 0x68], eax
jne 0x5e0652
push dword [esp + 0x10]
lea ecx, [esp + 0xc0]
call fcn.0058f079
push 2
push dword [0x757b90]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x178], 3
call fcn.0058f48e
push dword [0x757b8c]
lea ecx, [esp + 0x14]
call fcn.0058f519
push dword [0x757b84]
push dword [esp + 0x184]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
sub eax, esi
cdq
and edx, 3
lea edi, [edx + eax]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
inc edx
sar edi, 2
dec eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
lea ecx, [edi + esi]
push ecx
push eax
push ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x1c]
push edx
call fcn.0058f134
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
add eax, edi
push eax
push dword [esp + 0x4c]
add ecx, edi
mov dword [esp + 0x54], eax
push ecx
push dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x20]
call fcn.0058f134
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
add eax, edi
push eax
push dword [esp + 0x4c]
add ecx, edi
mov dword [esp + 0x54], eax
push ecx
push dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x20]
call fcn.0058f134
mov ecx, dword [esp + 0x194]
test ecx, ecx
je 0x5e05c0
mov edi, dword [esp + 0x2c]
mov eax, edi
mov esi, dword [esp + 0x24]
sub eax, esi
inc ecx
cdq
idiv ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x38], edx
lea ebp, [eax + 1]
sub edi, ebp
lea eax, [esi + 1]
inc ecx
mov dword [esp + 0x50], ecx
cmp edi, eax
jle 0x5e05c0
mov ebx, edi
push edx
push ebx
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.0058f134
mov eax, dword [esp + 0x24]
sub edi, ebp
mov ecx, dword [esp + 0x50]
sub ebx, ebp
mov edx, dword [esp + 0x38]
inc eax
cmp edi, eax
jg 0x5e059a
mov ebx, dword [esp + 0x34]
push 0
push dword [esp + 0x180]
lea ecx, [esp + 0x78]
push 0
push 0xa
call fcn.0058f4d1
push dword [0x757b8c]
lea ecx, [esp + 0x14]
call fcn.0058f519
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
add eax, 0xa
cmp dword [esp + 0x198], 0
mov dword [esp + 0x4c], eax
je 0x5e0615
push 0x25
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x1a0]
lea ecx, [esp + 0x1c]
call fcn.0058f1a7
cmp dword [esp + 0x1a0], 0
je 0x5e063e
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0x24
push eax
push dword [esp + 0x1a8]
call fcn.0058f1a7
lea ecx, [esp + 0xbc]
mov byte [esp + 0x170], 2
call fcn.0058f11b
fld1
or eax, 0xffffffff
and dword [esp + 0x3c], 0
xor edi, edi
mov ebp, dword [esp + 0x190]
mov dword [esp + 0x38], eax
fstp dword [esp + 0x18]
fld dword [0x6e17b8]
fstp dword [esp + 0x1c]
test ebp, ebp
jle 0x5e06ec
mov ebx, dword [esp + 0x18c]
push dword [esp + 0x188]
mov ecx, ebx
call fcn.005e20ba
mov esi, dword [eax + 4]
cmp dword [esp + 0x3c], esi
jg 0x5e069d
mov dword [esp + 0x3c], esi
xor ecx, ecx
test esi, esi
je 0x5e06dc
mov edx, dword [eax]
fld dword [esp + 0x18]
fld dword [edx + ecx*4]
fcompp
fnstsw ax
test ah, 1
jne 0x5e06c0
fld dword [edx + ecx*4]
fstp dword [esp + 0x18]
mov dword [esp + 0x38], edi
fld dword [esp + 0x1c]
fld dword [edx + ecx*4]
fcompp
fnstsw ax
test ah, 0x41
jp 0x5e06d7
fld dword [edx + ecx*4]
fstp dword [esp + 0x1c]
inc ecx
cmp ecx, esi
jne 0x5e06a5
inc edi
add ebx, 0x14
cmp edi, ebp
jl 0x5e0682
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
test byte [esp + 0x1a4], 4
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
je 0x5e0711
cmp eax, 1
jne 0x5e0711
fmul qword [0x6e17a0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fldz
fcomp st(2)
fnstsw ax
fld qword [0x69ef98]
test ah, 0x41
jne 0x5e0735
fmul st(2), st(0)
fxch st(2)
mov byte [esp + 0x17], 1
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
jmp 0x5e073c
mov byte [esp + 0x17], 0
fxch st(2)
test byte [esp + 0x1a4], 2
jne 0x5e07b9
fld qword [0x690be0]
fadd st(2), st(0)
fxch st(2)
call fcn.00639366
lea edi, [eax + 0x3ff]
shr edi, 0xa
cmp edi, 1
jg 0x5e0766
xor edi, edi
inc edi
cmp byte [esp + 0x17], 0
je 0x5e077c
faddp st(1)
call fcn.00639366
lea esi, [eax + 0x3ff]
jmp 0x5e0785
fstp st(1)
call fcn.00639366
mov esi, eax
lea eax, [edi - 1]
shr esi, 0xa
cmp esi, eax
jl 0x5e0791
mov esi, eax
mov eax, edi
shl eax, 0xa
mov dword [esp + 0x20], eax
mov eax, esi
fild dword [esp + 0x20]
shl eax, 0xa
mov dword [esp + 0x20], eax
fstp dword [esp + 0x18]
fild dword [esp + 0x20]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
jmp 0x5e07cb
fxch st(1)
call fcn.00639330
fld st(0)
mov edi, eax
call fcn.00639330
mov esi, eax
cmp byte [esp + 0x17], 0
je 0x5e07e0
fmulp st(1)
neg esi
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
jmp 0x5e07e2
fstp st(1)
cmp dword [esp + 0x68], 0
jne 0x5e0899
mov ecx, dword [esp + 0x24]
fstp st(0)
mov eax, ecx
sub eax, ebx
sub eax, 0x14
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffffe
mov dword [esp + 0x84], eax
lea eax, [ecx - 2]
push edi
mov dword [esp + 0x8c], eax
mov edi, 0x690858
mov eax, dword [esp + 0x34]
push edi
mov dword [esp + 0x94], eax
lea eax, [esp + 0xf8]
push 0x1e
push eax
call fcn.00471625
add esp, 0x10
lea eax, [esp + 0x80]
lea ecx, [esp + 0x10]
push 0x22
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.0058f1a7
mov eax, dword [esp + 0x30]
push esi
add eax, 0xfffffff4
push edi
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x134]
push 0x1e
push eax
call fcn.00471625
add esp, 0x10
lea eax, [esp + 0x80]
lea ecx, [esp + 0x10]
push 0x22
push eax
lea eax, [esp + 0x134]
push eax
call fcn.0058f1a7
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
dec edx
mov ebx, dword [esp + 0x2c]
inc ecx
mov eax, dword [esp + 0x24]
dec ebx
fsubr dword [esp + 0x18]
inc eax
mov dword [esp + 0x2c], ebx
sub ebx, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x30], edx
fld1
sub edx, ecx
inc ebx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x20], edx
sete al
fdivrp st(1)
mov dword [esp + 0x38], eax
xor ecx, ecx
add eax, dword [esp + 0x3c]
push 8
pop edx
mov dword [esp + 0x6c], ebx
fild dword [esp + 0x20]
mul edx
fstp dword [esp + 0x20]
fmul dword [esp + 0x20]
seto cl
neg ecx
or ecx, eax
push ecx
fstp dword [esp + 0x58]
call fcn.0061c0ee
lea edi, [ebp - 1]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], edi
pop ecx
test edi, edi
js 0x5e0a2d
mov esi, dword [esp + 0x18c]
mov ebp, dword [esp + 0x38]
add esi, 4
imul ecx, edi, 0x14
add esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [esi]
lea ecx, [esp + 0x90]
push dword [esi + 4]
push dword [eax*4 + 0x757a74]
call fcn.0058f48e
push dword [esp + 0x188]
lea ecx, [esi - 4]
call fcn.005e20ba
and dword [esp + 0x3c], 0
mov ebx, eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
add ecx, ebp
je 0x5e09f7
mov edi, dword [esp + 0x34]
xor eax, eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
dec ecx
xor edx, edx
div ecx
mov ecx, dword [esp + 0x3c]
add eax, dword [esp + 0x24]
mov dword [edi + ecx*8], eax
mov ecx, ebp
mov eax, dword [ebx]
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 0x18]
fld dword [eax + ecx*4]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fmul dword [esp + 0x54]
call fcn.00639330
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
sub ecx, eax
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [edi + edx*8 + 4], ecx
mov ecx, dword [ebx + 4]
add ecx, ebp
sub eax, ecx
neg eax
sbb eax, eax
and dword [esp + 0x18], eax
inc edx
mov eax, dword [esp + 0x38]
add eax, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
cmp edx, ecx
jne 0x5e0981
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x50]
mov eax, dword [ebx + 4]
add eax, ebp
push eax
push dword [esp + 0x38]
push dword [esp + 0x188]
call dword [sym.imp.GDI32.dll_Polyline]
dec edi
sub esi, 0x14
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], esi
test edi, edi
jns 0x5e0933
mov ebp, dword [esp + 0x190]
mov eax, dword [esp + 0x34]
push eax
call fcn.006341e9
mov esi, dword [esp + 0x1a0]
pop ecx
test esi, esi
je 0x5e0a99
lea ecx, [esp + 0x10]
call fcn.0058f3c2
test al, al
jne 0x5e0aff
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push 5
mov dword [esp + 0xbc], ecx
lea eax, [edx - 0x18]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
lea ecx, [esp + 0x14]
sar eax, 1
sub eax, 0x18
mov dword [esp + 0xb4], eax
lea eax, [edx - 8]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.0058f1a7
push 0xa
pop ebx
cmp dword [esp + 0x68], 0
je 0x5e0b73
push 0
push dword [esp + 0x180]
lea ecx, [esp + 0x78]
push 0
push 0x14
call fcn.0058f4d1
push dword [0x757b8c]
lea ecx, [esp + 0x14]
call fcn.0058f519
push 0x3cc
call fcn.00582370
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
add eax, dword [esp + 0x2c]
sar eax, 2
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x2c]
sar eax, 1
sub eax, 0x64
push eax
call fcn.0058f5c5
jmp 0x5e0d44
push 0x384
push dword [esp + 0x180]
lea ecx, [esp + 0x78]
push 0
push 0xa
pop ebx
push ebx
call fcn.0058f4d1
lea eax, [esp + 0xc8]
movzx ecx, word [esi]
test cx, cx
je 0x5e0b42
cmp cx, bx
je 0x5e0b34
mov word [eax], cx
add eax, 2
lea ecx, [esp + 0xee]
add esi, 2
cmp eax, ecx
jne 0x5e0b21
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
add eax, dword [esp + 0x2c]
sar eax, 1
add eax, 0xc
push eax
mov eax, dword [esp + 0x2c]
add eax, 0xffffffee
push eax
call fcn.0058f5c5
jmp 0x5e0a9c
test byte [esp + 0x1a4], 0x20
jne 0x5e0d44
cmp byte [0x73fb10], 0
je 0x5e0d44
push 0
push dword [esp + 0x180]
lea ecx, [esp + 0x78]
push 0
push ebx
call fcn.0058f4d1
xor edi, edi
xor ebx, ebx
test ebp, ebp
je 0x5e0c0e
mov esi, dword [esp + 0x18c]
add esi, 0xc
mov dword [esp + 0x54], ebp
push 0x400
lea eax, [esp + 0xa0]
push eax
movzx eax, word [esi]
push eax
call fcn.00582370
push eax
lea ecx, [esp + 0x1c]
call fcn.0058f1a7
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x9c]
cmp eax, ebx
jle 0x5e0bed
mov ebx, eax
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
cmp eax, edi
jle 0x5e0c01
mov edi, eax
add esi, 0x14
dec ebp
jne 0x5e0bb9
mov ebp, dword [esp + 0x190]
mov ecx, dword [esp + 0x24]
mov eax, edi
mov edx, dword [esp + 0x28]
add ecx, 7
imul eax, ebp
add edx, 7
mov dword [esp + 0x58], ecx
add ecx, 0x2e
add ecx, ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
add eax, 2
add eax, edx
mov dword [esp + 0x64], eax
cmp eax, dword [esp + 0x30]
jg 0x5e0d44
cmp ecx, dword [esp + 0x2c]
jg 0x5e0d44
cmp byte [0x75efed], 0
lea eax, [esp + 0x58]
lea ecx, [esp + 0x10]
je 0x5e0c73
push 0x80
push dword [0x757b94]
push eax
call fcn.0058f271
jmp 0x5e0c7f
push dword [0x757b94]
push eax
call fcn.0058f212
test ebp, ebp
je 0x5e0d44
mov ebp, dword [esp + 0x18c]
mov eax, edi
cdq
xor esi, esi
sub eax, edx
mov dword [esp + 0x34], esi
mov ebx, eax
add ebp, 4
sar ebx, 1
sub ebx, edi
mov ecx, dword [ebp]
push dword [ebp + 4]
push dword [ecx*4 + 0x757a74]
lea ecx, [esp + 0x98]
call fcn.0058f48e
mov ecx, dword [esp + 0x58]
add esi, edi
lea eax, [ecx + 0x28]
push eax
lea eax, [esi + ebx]
add eax, dword [esp + 0x60]
push eax
lea eax, [ecx + 2]
push eax
lea ecx, [esp + 0x1c]
call fcn.0058f2ef
movzx eax, word [ebp + 8]
push eax
call fcn.00582370
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x14]
add eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x60]
add eax, 0x2d
push eax
call fcn.0058f5c5
push dword [esp + 0x188]
lea ecx, [ebp - 4]
call fcn.005e20ba
mov ecx, dword [esp + 0x58]
lea ebp, [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x5c]
add ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
add ecx, esi
mov dword [esp + 0x34], esi
dec dword [esp + 0x190]
mov dword [eax + 0x18], ecx
jne 0x5e0ca2
lea ecx, [esp + 0x70]
mov byte [esp + 0x170], 1
call fcn.0058f11b
lea ecx, [esp + 0x90]
mov byte [esp + 0x170], 0
call fcn.0058f11b
or dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00409edb
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x30