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

Disassembly:
sub esp, 0x28
push ebp
xor ebp, ebp
cmp dword [0x6f1ae8], ebp
jne 0x477775
xor eax, eax
pop ebp
add esp, 0x28
ret
push esi
mov esi, dword [esp + 0x34]
cmp esi, ebp
jne 0x477786
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
mov eax, dword [esi + 0x48]
push ebx
push 0x180
mov dword [esp + 0x10], eax
call fcn.004871ea
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x18], ebx
jne 0x4777ae
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
mov edx, dword [esp + 0x3c]
lea ecx, [ebx + 0xc0]
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov edi, ebx
movzx eax, word [edx]
push eax
call fcn.00474720
add esp, 4
test eax, eax
je 0x4777f1
mov cl, byte [edx]
mov byte [edi], cl
mov al, byte [edx + 1]
add edx, 1
add edi, 1
mov byte [edi], al
add edi, 1
add edx, 1
add ebp, 1
jmp 0x4777c7
mov al, byte [edx]
cmp al, 0x5c
jne case.0x47780a.72
movzx ecx, byte [edx + 1]
add ecx, 0xffffffb9
cmp ecx, 0x2c
ja case.0x47780a.72
movzx ecx, byte [ecx + 0x477c50]
jmp dword [ecx*4 + 0x477c48]
mov al, byte [edx + 2]
add edx, 2
xor ecx, ecx
cmp al, 0x39
ja 0x477837
lea ecx, [ecx]
cmp al, 0x30
jb 0x477837
movzx eax, al
lea ecx, [ecx + ecx*4]
add edx, 1
lea ecx, [eax + ecx*2 - 0x30]
mov al, byte [edx]
cmp al, 0x39
jbe 0x477820
add ecx, 0xffffff00
mov word [edi], cx
add edi, 2
add ebp, 1
jmp 0x4777c7
cmp al, 0x7c
je 0x477871
test al, al
je 0x477c33
cmp al, 0x7d
je 0x477c33
mov byte [edi], al
add edi, 1
add edx, 1
add dword [esp + 0x20], 1
jmp 0x4777c7
mov byte [edi], 0
mov byte [edi + 1], 0
mov edi, dword [esp + 0x24]
add edx, 1
xor ebx, ebx
movzx ecx, word [edx]
push ecx
call fcn.00474720
add esp, 4
test eax, eax
mov al, byte [edx]
je 0x4778ab
mov byte [edi], al
mov cl, byte [edx + 1]
add edx, 1
add edi, 1
mov byte [edi], cl
add edi, 1
add edx, 1
add ebx, 1
jmp 0x477881
cmp al, 0x5c
jne case.0x4778c2.72
movzx ecx, byte [edx + 1]
add ecx, 0xffffffb9
cmp ecx, 0x2c
ja case.0x4778c2.72
movzx ecx, byte [ecx + 0x477c88]
jmp dword [ecx*4 + 0x477c80]
mov al, byte [edx + 2]
add edx, 2
xor ecx, ecx
cmp al, 0x39
ja 0x4778ec
cmp al, 0x30
jb 0x4778ec
movzx eax, al
lea ecx, [ecx + ecx*4]
add edx, 1
lea ecx, [eax + ecx*2 - 0x30]
mov al, byte [edx]
cmp al, 0x39
jbe 0x4778d5
add ecx, 0xffffff00
mov word [edi], cx
add edi, 2
add ebx, 1
jmp 0x477881
cmp al, 0x7d
je 0x47791b
test al, al
je 0x477c1c
mov byte [edi], al
add edi, 1
add edx, 1
add dword [esp + 0x18], 1
jmp 0x477881
mov eax, dword [esp + 0x1c]
mov byte [edi], 0
mov byte [edi + 1], 0
mov ecx, dword [esi + 0x90]
push 0
lea edi, [edx + 1]
mov edx, dword [ecx + 0x1c]
push eax
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], edx
call fcn.00477fe0
add esp, 0xc
cmp byte [esi + 0x88], 0
mov dword [esp + 0x30], eax
jne 0x47796a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0048726d
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x28
ret
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x10]
cmp byte [eax + edx], 0
jne 0x477995
mov ecx, dword [esi + 0x20]
lea ebx, [ebx]
add edx, 1
cmp edx, ecx
jge 0x477a74
cmp byte [eax + edx], 0
je 0x477980
mov dword [esp + 0x10], edx
fld dword [esi + 0x4c]
fadd st(0), st(0)
call fcn.004884b0
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, 1
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
sar ecx, 1
add ecx, ebp
add eax, 1
imul ecx, edi
cdq
sub eax, edx
mov ebp, eax
mov eax, ecx
cdq
sar ebp, 1
add ebp, ebx
idiv ebp
mov edx, dword [esp + 0x24]
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + edx*4]
push ecx
push eax
call fcn.00474620
mov ebp, dword [esi + 0x80]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x84]
sub dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x18]
sub eax, ebp
sub eax, edi
add eax, dword [esp + 0x2c]
add esp, 0xc
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x14], eax
mov eax, dword [esi + 0x48]
sub eax, 1
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
cmp edi, eax
jle 0x477abb
mov eax, dword [esp + 0x10]
cdq
idiv ecx
add eax, 1
imul eax, ecx
cmp dword [ebx + eax*4 - 8], 0
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x54]
je 0x477a8b
fild dword [esi + 0x18]
sub eax, ebp
cdq
sub eax, edx
fmul dword [esi + 0x4c]
mov edi, eax
sar edi, 1
call fcn.004884b0
sub eax, edi
add eax, ebx
sub edi, ebx
add edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edi
jmp 0x477acb
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048726d
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x28
ret
sub eax, ebp
cdq
sub eax, edx
mov edx, ecx
sub edx, 2
mov dword [esp + 0x2c], edx
mov edi, eax
fild dword [esp + 0x2c]
sar edi, 1
fmul dword [esi + 0x4c]
call fcn.004884b0
sub eax, edi
add eax, ebx
sub edi, ebx
add edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edi
jmp 0x477acb
mov dword [esp + 0x10], 0x500
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x477be7
jmp 0x477af0
mov edx, dword [esi + 0x7c]
cmp dword [edx + edi*4], 0
jne 0x477bdb
mov ebx, dword [esp + 0x24]
movzx edx, word [ebx]
push edx
call fcn.00474720
add esp, 4
test eax, eax
mov eax, dword [esi + 0x80]
je 0x477b37
mov ecx, dword [esi + 0x68]
push ecx
push eax
push eax
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x34]
push ecx
lea eax, [esi + 0x24]
push eax
push edx
call fcn.004744c0
add esp, 0x1c
add ebx, 2
jmp 0x477b59
mov edx, dword [esi + 0x68]
push edx
push eax
push eax
mov eax, dword [esi + 0x14]
push eax
movzx ax, byte [ebx]
lea ecx, [esi + 0x34]
push ecx
lea edx, [esi + 0x24]
push edx
push eax
call fcn.004744c0
add esp, 0x1c
add ebx, 1
mov ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + edi*4]
push edx
push ebp
push ecx
mov dword [esp + 0x30], ebx
call fcn.00474570
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jl 0x477ba3
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x90]
push eax
mov eax, dword [edx + edi*4]
push 1
push eax
call fcn.00475270
mov dword [esp + 0x28], 0xffffffff
jmp 0x477bb9
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 0x90]
push 0
push 0
push edx
call fcn.00475270
cmp byte [ebx], 0
je 0x477be7
add ebp, dword [esp + 0x20]
cmp ebp, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
jl 0x477bdb
sub ebp, dword [esp + 0x2c]
mov eax, dword [esi + 0x50]
add dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
add edi, 1
cmp edi, dword [esi + 0x20]
jl 0x477af0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048726d
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x477c10
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x28
ret
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048726d
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
push ebx
call fcn.0048726d
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret