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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
xor ebx, ebx
cmp dword [esi], ebx
push edi
mov dword [esp + 0x34], 1
mov dword [esp + 0x18], ebx
je 0x478b86
push esi
call fcn.004759c0
add esp, 4
mov edi, dword [esp + 0x7c]
cmp edi, ebx
mov ebp, dword [esi + 0x54]
mov dword [esi], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x14], ebp
je 0x478fd0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x78]
xor edx, edx
cmp ecx, ebx
mov eax, edi
mov dword [esp + 0x28], edx
jle 0x478c05
jmp 0x478bf0
mov bl, byte [eax]
add eax, 1
test bl, bl
je 0x478bfc
add edx, 1
sub ecx, 1
jne 0x478bf0
mov dword [esp + 0x28], edx
mov ecx, dword [esi + 0x10]
mov eax, ecx
and eax, 0x10000
mov dword [esp + 0x3c], eax
je 0x478c1c
add edx, 4
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x58]
sub eax, edx
test ecx, ecx
jns 0x478c42
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 0x7c]
mov ebp, dword [esi + 0x80]
add ebx, edi
add eax, edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x14], ebp
jmp 0x478c47
mov ebx, dword [esi + 0x50]
add eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x5c]
sub eax, edx
add eax, dword [esi + 0x54]
test ecx, 0x1000000
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
je 0x478cbf
and ecx, 0xffff
mov eax, ecx
mov dword [esp + 0x74], eax
je 0x478fb0
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
sar edi, 1
test al, 1
je 0x478c9a
add eax, 1
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
jmp 0x478ca7
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul dword [esi + 0x40]
call fcn.004884b0
sub edi, eax
add ebx, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0
cmp dword [esp + 0x3c], 0
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x478d69
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x18]
push edx
push eax
mov eax, dword [esi + 0x68]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x64]
push eax
push 0x7981
call fcn.004744c0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x478fb0
push ebp
push ebx
push edi
call fcn.00474570
mov ecx, dword [esi + 0x8c]
mov dword [ecx], edi
fld dword [esi + 0x40]
fmul qword [0x4a26b8]
add esp, 0xc
mov dword [esp + 0x20], 2
call fcn.004884b0
mov edi, ebx
sub edi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
je 0x478d3d
sub dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x478d69
add ebp, dword [esi + 0x48]
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jg 0x478fbe
cmp dword [esp + 0x34], 0
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x478d69
mov dword [esp + 0x74], 0
cmp dword [esp + 0x78], 0
mov dword [esp + 0x28], 0
jle 0x478f02
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov dl, byte [eax]
test dl, dl
je 0x478ede
movzx ebx, word [eax]
push ebx
call fcn.00474720
add esp, 4
test eax, eax
je 0x478e44
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
push ebx
call fcn.004744c0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x478fac
push ebp
push edi
push ebx
call fcn.00474570
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x8c]
mov dword [edx + eax*4], ebx
fld dword [esi + 0x40]
fmul qword [0x4a26b8]
add eax, 2
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.004884b0
mov ecx, dword [esp + 0x34]
sub edi, eax
test ecx, ecx
mov dword [esp + 0x10], edi
je 0x478e0e
sub dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x478e35
add ebp, dword [esi + 0x48]
cmp ebp, dword [esp + 0x30]
jg 0x478fba
test ecx, ecx
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x478e35
mov dword [esp + 0x74], 0
add dword [esp + 0x1c], 2
add dword [esp + 0x28], 1
jmp 0x478ee5
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x18]
push eax
movzx dx, dl
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.004744c0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x478fac
push ebp
push edi
push ebx
call fcn.00474570
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x8c]
mov dword [ecx + eax*4], ebx
fld dword [esi + 0x40]
add eax, 1
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.004884b0
add edi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
je 0x478ead
add dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x478ed7
add ebp, dword [esi + 0x48]
cmp ebp, dword [esp + 0x30]
jg 0x478fba
cmp dword [esp + 0x34], 0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x478ed7
mov dword [esp + 0x74], 0
add dword [esp + 0x1c], 1
jmp 0x478ee5
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
jl 0x478d80
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
test dword [esi + 0x10], 0x10000
je 0x478fd8
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
push 0x7a81
call fcn.004744c0
add esp, 0x1c
test eax, eax
mov dword [esp + 0x28], eax
je 0x478fb0
push ebp
mov edx, eax
push edi
push edx
call fcn.00474570
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x8c]
mov edx, dword [esp + 0x34]
mov dword [ecx + eax*4], edx
fld dword [esi + 0x40]
fmul qword [0x4a26b8]
add eax, 2
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.004884b0
sub edi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
je 0x478f82
sub dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x478fd8
add ebp, dword [esi + 0x48]
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jg 0x478fbe
cmp dword [esp + 0x34], 0
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x478fd8
mov dword [esp + 0x74], 0
jmp 0x478fd8
mov dword [esp + 0x14], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x68]
sub ebx, dword [esi + 0x48]
mov dword [esi + 0x24], eax
jmp 0x4793c8
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esi + 0x20], eax
jne 0x478ff3
test dword [esi + 0x10], 0x100000
je 0x478ff3
add ebp, dword [esi + 0x48]
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x84], 0
mov dword [esp + 0x38], ebp
je 0x4793b3
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x38]
push ecx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x84]
mov ecx, dword [esi + 0x14]
test ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x50]
jns 0x47906b
mov ebp, dword [esi + 0x88]
add ebp, dword [esi + 0x54]
mov ebx, dword [esi + 0x84]
add ebx, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebx
mov edi, ebx
jmp 0x4790b3
mov edx, ecx
and edx, 0xffff
je 0x479080
lea ebx, [eax + edx]
mov dword [esp + 0x24], ebx
mov edi, ebx
jmp 0x4790b3
movzx edx, word [esi + 0x10]
cmp edx, 0xffff
mov ebx, eax
jne 0x4790a8
cmp dword [esp + 0x7c], 0
mov edi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edi
je 0x4790b7
add ebp, dword [esi + 0x48]
mov dword [esp + 0x14], ebp
jmp 0x4790b7
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
lea edi, [ebx + edx]
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x58]
shr ecx, 0x14
and cl, 1
mov byte [esp + 0x74], cl
mov ecx, dword [esi + 0x6c]
sub edx, ecx
add edx, eax
mov eax, dword [esi + 0x5c]
sub eax, ecx
add eax, dword [esi + 0x54]
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jne 0x479155
test dword [esi + 0x14], 0x10000
je 0x479155
fld dword [esi + 0x44]
fadd st(0), st(0)
call fcn.004884b0
mov cl, byte [esp + 0x74]
add edi, eax
test cl, cl
mov dword [esp + 0x10], edi
je 0x479112
mov eax, 2
mov dword [esp + 0x18], eax
jmp 0x479116
mov eax, dword [esp + 0x18]
cmp edi, dword [esp + 0x2c]
jg 0x479129
test cl, cl
je 0x479155
cmp eax, dword [esp + 0x90]
jne 0x479155
add ebp, dword [esi + 0x4c]
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jg 0x4793f2
test cl, cl
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x479155
cmp eax, dword [esp + 0x90]
jne 0x479155
mov dword [esp + 0x18], 0
cmp dword [esp + 0x80], 0
mov dword [esp + 0x28], 0
jle 0x4793b3
jmp 0x479170
mov eax, dword [esp + 0x1c]
mov dl, byte [eax]
test dl, dl
je 0x479301
movzx ebx, word [eax]
push ebx
call fcn.00474720
add esp, 4
test eax, eax
je 0x479247
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x6c]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
call fcn.004744c0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x478fac
push ebp
push edi
push ebx
call fcn.00474570
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x8c]
mov dword [ecx + eax*4], ebx
fld dword [esi + 0x44]
add eax, 2
fadd st(0), st(0)
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.004884b0
add edi, eax
mov al, byte [esp + 0x74]
test al, al
mov dword [esp + 0x10], edi
je 0x4791fb
add dword [esp + 0x18], 2
cmp edi, dword [esp + 0x2c]
jg 0x47921a
test al, al
je 0x479380
mov edx, dword [esp + 0x90]
cmp dword [esp + 0x18], edx
jne 0x479380
add ebp, dword [esi + 0x4c]
cmp ebp, dword [esp + 0x30]
jg 0x4793ee
test al, al
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x479380
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x90]
jmp 0x479376
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x6c]
push eax
mov eax, dword [esi + 0x18]
push ecx
push eax
lea ecx, [esp + 0x50]
push ecx
movzx cx, dl
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.004744c0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x478fac
push ebp
push edi
push ebx
call fcn.00474570
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x8c]
mov dword [edx + eax*4], ebx
fld dword [esi + 0x44]
add eax, 1
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.004884b0
add edi, eax
mov al, byte [esp + 0x74]
test al, al
mov dword [esp + 0x10], edi
je 0x4792b2
add dword [esp + 0x18], 1
cmp edi, dword [esp + 0x2c]
jg 0x4792c9
test al, al
je 0x4792f7
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x18], ecx
jne 0x4792f7
add ebp, dword [esi + 0x4c]
cmp ebp, dword [esp + 0x30]
jg 0x4793ee
test al, al
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x4792f7
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x90]
jne 0x4792f7
mov dword [esp + 0x18], 0
add dword [esp + 0x1c], 1
jmp 0x479393
cmp byte [esp + 0x74], 0
je 0x47938c
cmp byte [eax + 1], 0
je 0x47932e
fld dword [esi + 0x44]
add eax, 1
mov dword [esp + 0x1c], eax
call fcn.004884b0
add edi, eax
add dword [esp + 0x18], 1
mov dword [esp + 0x10], edi
jmp 0x479393
fld dword [esi + 0x44]
fadd st(0), st(0)
call fcn.004884b0
add dword [esp + 0x18], 2
add edi, eax
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
jg 0x479356
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x90]
jne 0x479380
add ebp, dword [esi + 0x4c]
cmp ebp, dword [esp + 0x30]
jg 0x4793ee
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x90]
mov dword [esp + 0x10], edi
jne 0x479380
mov dword [esp + 0x18], 0
add dword [esp + 0x1c], 2
add dword [esp + 0x28], 1
jmp 0x479393
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
jl 0x479170
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
cmp edi, ebx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x24], eax
jne 0x4793c5
sub ebp, dword [esi + 0x4c]
mov dword [esp + 0x14], ebp
mov ebx, dword [esi + 0x6c]
add ebx, ebp
mov ebp, dword [esp + 0x88]
test ebp, ebp
mov dword [esp + 0x34], ebx
je 0x47960b
mov edi, dword [esp + 0x8c]
test edi, edi
je 0x479401
mov dword [esp + 0x74], edi
jmp 0x479407
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + 0x6c]
sub ebx, dword [esi + 0x4c]
mov dword [esi + 0x24], edx
jmp 0x4793c8
mov dword [esp + 0x74], ebp
mov edi, ebp
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x64]
push ecx
add ebp, 0x10
push edx
mov dword [esp + 0x34], ebp
call fcn.00476540
mov ecx, eax
test ecx, ecx
mov eax, dword [esi + 0x30]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
je 0x47945c
mov eax, ecx
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
cmp dword [edi], 0
mov dword [esp + 0x1c], 0
jbe 0x4795ed
mov edx, dword [esp + 0x20]
lea eax, [edx*4]
mov dword [esp + 0x24], eax
lea esp, [esp]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x64]
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
movzx ecx, word [ebp]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.004744c0
add esp, 0x1c
test eax, eax
mov dword [esp + 0x28], eax
je 0x4795e9
mov ebp, dword [ebp + 4]
cmp ebp, 0xc8
mov edi, dword [esi + 0x20]
mov dword [esp + 0x30], ebp
jle 0x479537
mov eax, dword [esi + 0x8c]
lea edx, [eax + edi*4 + 8]
lea ebx, [eax + edi*4]
mov dword [esp + 0x7c], edx
cmp dword [ebx], 0
je 0x47962c
mov eax, dword [ebx]
push eax
call fcn.00476190
add esp, 4
test eax, eax
je 0x479615
cmp eax, 2
jne 0x479512
mov ecx, dword [esp + 0x7c]
cmp dword [ecx], 0
je 0x479537
add dword [esp + 0x7c], 8
sub ebp, 0xc8
add edi, eax
add ebx, 8
jmp 0x479526
cmp dword [ebx + 4], 0
je 0x479537
add dword [esp + 0x7c], 4
sub ebp, 0x64
add edi, 1
add ebx, 4
cmp edi, dword [esi + 0x24]
mov dword [esp + 0x30], ebp
jge 0x479585
cmp ebp, 0xc8
jg 0x4794d6
cmp edi, dword [esi + 0x24]
jge 0x479585
mov edx, dword [esi + 0x8c]
cmp dword [edx + edi*4], 0
lea edi, [edx + edi*4]
je 0x479585
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00474620
fld dword [esi + 0x44]
fimul dword [esp + 0x3c]
add esp, 0xc
fdiv qword [0x4a0478]
call fcn.004884b0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x14]
sub eax, dword [edi + 0xc]
jmp 0x479596
mov eax, dword [esi + 0x54]
mov edi, dword [esp + 0x74]
sub eax, dword [edi + 0xc]
mov ecx, dword [esi + 0x50]
add eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
push eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], ecx
sub ecx, eax
push ecx
push ebx
call fcn.00474570
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x8c]
mov ebp, dword [esp + 0x38]
mov dword [eax + ecx], ebx
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
add eax, 1
add ebp, 0x18
add esp, 0xc
cmp eax, dword [edi]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], eax
jb 0x479480
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x47960b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x60
ret
mov edx, dword [esp + 0x28]
push edx
call fcn.00474510
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x28]
push eax
call fcn.00474510
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret