Function at 0x475700
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 0x475726
push esi
call fcn.00473410
add esp, 4
mov edi, dword [esp + 0x7c]
cmp edi, ebx
mov ebp, dword [esi + 0x48]
mov dword [esi], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ebp
je 0x475b68
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x18]
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 0x4757a5
mov edi, ecx
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
je 0x47579c
add edx, 1
sub edi, 1
jne 0x475790
mov dword [esp + 0x28], edx
mov ecx, dword [esi + 0x10]
mov eax, ecx
and eax, 0x10000
mov dword [esp + 0x3c], eax
je 0x4757bc
add edx, 4
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x4c]
sub eax, edx
test ecx, ecx
jns 0x4757db
mov edi, dword [esi + 0x44]
mov ebx, dword [esi + 0x70]
mov ebp, dword [esi + 0x74]
add ebx, edi
mov dword [esp + 0x14], ebp
add eax, edi
jmp 0x4757e0
mov ebx, dword [esi + 0x44]
add eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
sub eax, edx
add eax, dword [esi + 0x48]
test ecx, 0x1000000
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
je 0x47585c
and ecx, 0xffff
mov eax, ecx
mov dword [esp + 0x74], eax
je 0x475b48
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
sar edi, 1
test al, 1
je 0x475837
add eax, 1
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
jmp 0x475844
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul dword [esi + 0x34]
call fcn.00485ee0
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 0x475906
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x5c]
push ecx
push eax
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0x7981
call fcn.00471cb0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x475b48
push ebp
push ebx
push edi
call fcn.00471d30
mov edx, dword [esi + 0x80]
mov dword [edx], edi
fld dword [esi + 0x34]
fmul qword [0x4a0648]
add esp, 0xc
mov dword [esp + 0x20], 2
call fcn.00485ee0
mov edi, ebx
sub edi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
je 0x4758da
sub dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x475906
add ebp, dword [esi + 0x3c]
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jg 0x475b56
cmp dword [esp + 0x34], 0
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x475906
mov dword [esp + 0x74], 0
cmp dword [esp + 0x78], 0
mov dword [esp + 0x28], 0
jle 0x475a9a
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov dl, byte [eax]
test dl, dl
je 0x475a76
movzx ebx, word [eax]
push ebx
call fcn.00471ee0
mov ecx, dword [esi + 0x54]
add esp, 4
test eax, eax
mov eax, dword [esi + 0x64]
push eax
push ecx
je 0x4759e4
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x18]
push edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
call fcn.00471cb0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x475b44
push ebp
push edi
push ebx
call fcn.00471d30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x80]
mov dword [ecx + eax*4], ebx
fld dword [esi + 0x34]
fmul qword [0x4a0648]
add eax, 2
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.00485ee0
mov ecx, dword [esp + 0x34]
sub edi, eax
test ecx, ecx
mov dword [esp + 0x10], edi
je 0x4759ae
sub dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x4759d5
add ebp, dword [esi + 0x3c]
cmp ebp, dword [esp + 0x30]
jg 0x475b52
test ecx, ecx
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x4759d5
mov dword [esp + 0x74], 0
add dword [esp + 0x1c], 2
add dword [esp + 0x28], 1
jmp 0x475a7d
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x18]
push eax
movzx dx, dl
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.00471cb0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x475b44
push ebp
push edi
push ebx
call fcn.00471d30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x80]
mov dword [ecx + eax*4], ebx
fld dword [esi + 0x34]
add eax, 1
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.00485ee0
add edi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
je 0x475a45
add dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x475a6f
add ebp, dword [esi + 0x3c]
cmp ebp, dword [esp + 0x30]
jg 0x475b52
cmp dword [esp + 0x34], 0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x475a6f
mov dword [esp + 0x74], 0
add dword [esp + 0x1c], 1
jmp 0x475a7d
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 0x475920
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
test dword [esi + 0x10], 0x10000
je 0x475b70
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0x7a81
call fcn.00471cb0
add esp, 0x1c
test eax, eax
mov dword [esp + 0x28], eax
je 0x475b48
push ebp
mov edx, eax
push edi
push edx
call fcn.00471d30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x80]
mov edx, dword [esp + 0x34]
mov dword [ecx + eax*4], edx
fld dword [esi + 0x34]
fmul qword [0x4a0648]
add eax, 2
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.00485ee0
sub edi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
je 0x475b1a
sub dword [esp + 0x74], eax
cmp edi, dword [esp + 0x2c]
jle 0x475b70
add ebp, dword [esi + 0x3c]
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jg 0x475b56
cmp dword [esp + 0x34], 0
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x475b70
mov dword [esp + 0x74], 0
jmp 0x475b70
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 edi, dword [esi + 0x5c]
sub edi, dword [esi + 0x3c]
mov dword [esi + 0x24], eax
jmp 0x475f48
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esi + 0x20], eax
jne 0x475b8b
test dword [esi + 0x10], 0x100000
je 0x475b8b
add ebp, dword [esi + 0x3c]
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x84], 0
mov dword [esp + 0x38], ebp
je 0x475f33
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
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 + 0x44]
jns 0x475bea
mov ebp, dword [esi + 0x7c]
add ebp, dword [esi + 0x48]
mov ebx, dword [esi + 0x78]
add ebx, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebx
mov edi, ebx
jmp 0x475c32
mov edx, ecx
and edx, 0xffff
je 0x475bff
lea ebx, [eax + edx]
mov dword [esp + 0x24], ebx
mov edi, ebx
jmp 0x475c32
movzx edx, word [esi + 0x10]
cmp edx, 0xffff
mov ebx, eax
jne 0x475c27
cmp dword [esp + 0x7c], 0
mov edi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edi
je 0x475c36
add ebp, dword [esi + 0x3c]
mov dword [esp + 0x14], ebp
jmp 0x475c36
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
lea edi, [ebx + edx]
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x4c]
shr ecx, 0x14
and cl, 1
mov byte [esp + 0x74], cl
mov ecx, dword [esi + 0x60]
sub edx, ecx
add edx, eax
mov eax, dword [esi + 0x50]
sub eax, ecx
add eax, dword [esi + 0x48]
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jne 0x475cd4
test dword [esi + 0x14], 0x10000
je 0x475cd4
fld dword [esi + 0x38]
fadd st(0), st(0)
call fcn.00485ee0
mov cl, byte [esp + 0x74]
add edi, eax
test cl, cl
mov dword [esp + 0x10], edi
je 0x475c91
mov eax, 2
mov dword [esp + 0x18], eax
jmp 0x475c95
mov eax, dword [esp + 0x18]
cmp edi, dword [esp + 0x2c]
jg 0x475ca8
test cl, cl
je 0x475cd4
cmp eax, dword [esp + 0x90]
jne 0x475cd4
add ebp, dword [esi + 0x40]
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jg 0x475f72
test cl, cl
mov edi, ebx
mov dword [esp + 0x10], edi
je 0x475cd4
cmp eax, dword [esp + 0x90]
jne 0x475cd4
mov dword [esp + 0x18], 0
cmp dword [esp + 0x80], 0
mov dword [esp + 0x28], 0
jle 0x475f33
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
mov dl, byte [eax]
test dl, dl
je 0x475e81
movzx ebx, word [eax]
push ebx
call fcn.00471ee0
add esp, 4
test eax, eax
je 0x475dc7
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
call fcn.00471cb0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x475b44
push ebp
push edi
push ebx
call fcn.00471d30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x80]
mov dword [ecx + eax*4], ebx
fld dword [esi + 0x38]
add eax, 2
fadd st(0), st(0)
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.00485ee0
add edi, eax
mov al, byte [esp + 0x74]
test al, al
mov dword [esp + 0x10], edi
je 0x475d7b
add dword [esp + 0x18], 2
cmp edi, dword [esp + 0x2c]
jg 0x475d9a
test al, al
je 0x475f00
mov edx, dword [esp + 0x90]
cmp dword [esp + 0x18], edx
jne 0x475f00
add ebp, dword [esi + 0x40]
cmp ebp, dword [esp + 0x30]
jg 0x475f6e
test al, al
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x475f00
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x90]
jmp 0x475ef6
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x18]
push ecx
push eax
lea ecx, [esp + 0x60]
push ecx
movzx cx, dl
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00471cb0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x475b44
push ebp
push edi
push ebx
call fcn.00471d30
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x80]
mov dword [edx + eax*4], ebx
fld dword [esi + 0x38]
add eax, 1
add esp, 0xc
mov dword [esp + 0x20], eax
call fcn.00485ee0
add edi, eax
mov al, byte [esp + 0x74]
test al, al
mov dword [esp + 0x10], edi
je 0x475e32
add dword [esp + 0x18], 1
cmp edi, dword [esp + 0x2c]
jg 0x475e49
test al, al
je 0x475e77
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x18], ecx
jne 0x475e77
add ebp, dword [esi + 0x40]
cmp ebp, dword [esp + 0x30]
jg 0x475f6e
test al, al
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x475e77
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x90]
jne 0x475e77
mov dword [esp + 0x18], 0
add dword [esp + 0x1c], 1
jmp 0x475f13
cmp byte [esp + 0x74], 0
je 0x475f0c
cmp byte [eax + 1], 0
je 0x475eae
fld dword [esi + 0x38]
add eax, 1
mov dword [esp + 0x1c], eax
call fcn.00485ee0
add edi, eax
add dword [esp + 0x18], 1
mov dword [esp + 0x10], edi
jmp 0x475f13
fld dword [esi + 0x38]
fadd st(0), st(0)
call fcn.00485ee0
add dword [esp + 0x18], 2
add edi, eax
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
jg 0x475ed6
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x90]
jne 0x475f00
add ebp, dword [esi + 0x40]
cmp ebp, dword [esp + 0x30]
jg 0x475f6e
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x90]
mov dword [esp + 0x10], edi
jne 0x475f00
mov dword [esp + 0x18], 0
add dword [esp + 0x1c], 2
add dword [esp + 0x28], 1
jmp 0x475f13
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 0x475cf0
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
cmp edi, ebx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x24], eax
jne 0x475f45
sub ebp, dword [esi + 0x40]
mov dword [esp + 0x14], ebp
mov edi, dword [esi + 0x60]
mov eax, dword [esp + 0x88]
add edi, ebp
test eax, eax
mov dword [esp + 0x30], edi
je 0x476185
mov ebp, dword [esp + 0x8c]
test ebp, ebp
je 0x475f81
mov dword [esp + 0x74], ebp
jmp 0x475f87
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x20]
mov edi, dword [esi + 0x60]
sub edi, dword [esi + 0x40]
mov dword [esi + 0x24], edx
jmp 0x475f48
mov ebp, eax
mov dword [esp + 0x74], eax
mov ecx, dword [ebp + 4]
mov edx, dword [esi + 0x58]
push ecx
add eax, 0x10
push edx
mov dword [esp + 0x3c], eax
call fcn.00471f10
mov ebx, eax
test ebx, ebx
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
je 0x475fc7
mov eax, dword [esi + 0x18]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
cmp dword [ebp], 0
mov dword [esp + 0x1c], 0
jbe 0x47616b
mov ecx, dword [esp + 0x20]
lea edx, [ecx*4]
mov dword [esp + 0x24], edx
jmp 0x475ff0
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x58]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esi + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x60]
push edx
movzx edx, word [ecx]
lea eax, [esp + 0x74]
push eax
push edx
call fcn.00471cb0
add esp, 0x1c
test eax, eax
mov dword [esp + 0x28], eax
je 0x476163
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 4]
cmp ebx, 0xc8
mov edi, dword [esi + 0x20]
mov dword [esp + 0x2c], ebx
jle 0x4760b5
mov eax, dword [esi + 0x80]
lea ecx, [eax + edi*4 + 8]
lea ebp, [eax + edi*4]
mov dword [esp + 0x7c], ecx
cmp dword [ebp], 0
je 0x4761a6
mov edx, dword [ebp]
push edx
call fcn.00473dd0
add esp, 4
test eax, eax
je 0x47618f
cmp eax, 2
jne 0x476090
mov eax, dword [esp + 0x7c]
cmp dword [eax], 0
je 0x4760b5
add dword [esp + 0x7c], 8
sub ebx, 0xc8
add edi, 2
add ebp, 8
jmp 0x4760a4
cmp dword [ebp + 4], 0
je 0x4760b5
add dword [esp + 0x7c], 4
sub ebx, 0x64
add edi, 1
add ebp, 4
cmp edi, dword [esi + 0x24]
mov dword [esp + 0x2c], ebx
jge 0x476103
cmp ebx, 0xc8
jg 0x476051
cmp edi, dword [esi + 0x24]
jge 0x476103
mov ecx, dword [esi + 0x80]
cmp dword [ecx + edi*4], 0
lea eax, [ecx + edi*4]
je 0x476103
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00471de0
fld dword [esi + 0x38]
fimul dword [esp + 0x38]
add esp, 0xc
fdiv qword [0x49e480]
call fcn.00485ee0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x14]
sub eax, dword [edi + 0xc]
jmp 0x476116
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 0x48]
sub eax, dword [edx + 0xc]
mov ecx, dword [esi + 0x44]
add eax, dword [esp + 0x38]
mov edi, edx
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.00471d30
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x80]
add dword [esp + 0x40], 0x18
mov dword [eax + ecx], ebx
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
add eax, 1
add esp, 0xc
cmp eax, dword [edi]
mov dword [esp + 0x1c], eax
jb 0x475ff0
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x476185
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov edx, dword [esp + 0x28]
push edx
call fcn.00471d00
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.00471d00
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret