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

Disassembly:
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x6d9118], ebx
jne 0x474555
xor eax, eax
pop ebx
add esp, 0x28
ret
push esi
mov esi, dword [esp + 0x34]
cmp esi, ebx
jne 0x474566
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x48]
push ebp
push 0x180
mov dword [esp + 0x18], eax
call fcn.00484c16
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x28], ebp
jne 0x47458e
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x3c]
lea ecx, [ebp + 0xc0]
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edi, ebp
movzx eax, word [edx]
push eax
call fcn.00471ee0
add esp, 4
test eax, eax
je 0x4745d1
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 ebx, 1
jmp 0x4745a7
mov al, byte [edx]
cmp al, 0x5c
jne case.0x4745ea.72
movzx ecx, byte [edx + 1]
add ecx, 0xffffffb9
cmp ecx, 0x2c
ja case.0x4745ea.72
movzx ecx, byte [ecx + 0x4749f8]
jmp dword [ecx*4 + 0x4749f0]
mov al, byte [edx + 2]
add edx, 2
xor ecx, ecx
cmp al, 0x39
ja 0x474617
lea ecx, [ecx]
cmp al, 0x30
jb 0x474617
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 0x474600
add ecx, 0xffffff00
mov word [edi], cx
add edi, 2
add ebx, 1
jmp 0x4745a7
cmp al, 0x7c
je 0x474651
test al, al
je 0x4749dc
cmp al, 0x7d
je 0x4749dc
mov byte [edi], al
add edi, 1
add edx, 1
add dword [esp + 0x14], 1
jmp 0x4745a7
mov byte [edi], 0
mov dword [esp + 0x1c], ebx
mov byte [edi + 1], 0
mov edi, dword [esp + 0x20]
add edx, 1
xor ebx, ebx
movzx ecx, word [edx]
push ecx
call fcn.00471ee0
add esp, 4
test eax, eax
mov al, byte [edx]
je 0x47468f
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 0x474665
cmp al, 0x5c
jne case.0x4746a6.72
movzx ecx, byte [edx + 1]
add ecx, 0xffffffb9
cmp ecx, 0x2c
ja case.0x4746a6.72
movzx ecx, byte [ecx + 0x474a30]
jmp dword [ecx*4 + 0x474a28]
mov al, byte [edx + 2]
add edx, 2
xor ecx, ecx
cmp al, 0x39
ja 0x4746d7
lea esp, [esp]
cmp al, 0x30
jb 0x4746d7
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 0x4746c0
add ecx, 0xffffff00
mov word [edi], cx
add edi, 2
add ebx, 1
jmp 0x474665
cmp al, 0x7d
je 0x474709
test al, al
je 0x4749dc
mov byte [edi], al
add edi, 1
add edx, 1
add dword [esp + 0x10], 1
jmp 0x474665
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 ebp
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edx
call fcn.00474d80
add esp, 0xc
cmp byte [esi + 0x88], 0
mov dword [esp + 0x30], eax
jne 0x474750
push ebp
call fcn.00484c99
add esp, 4
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x44]
mov ebp, dword [esp + 0x18]
cmp byte [eax + ebp], 0
jne 0x47476d
lea ecx, [ecx]
add ebp, 1
cmp byte [eax + ebp], 0
je 0x474760
mov dword [esp + 0x18], ebp
fld dword [esi + 0x4c]
fadd st(0), st(0)
call fcn.00485ee0
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 1
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
sar ecx, 1
add ecx, dword [esp + 0x1c]
add eax, 1
cdq
imul ecx, edi
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [esp + 0x28], eax
mov eax, ecx
mov ecx, dword [esp + 0x28]
cdq
idiv ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + 0x78]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + ebp*4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call fcn.00471de0
mov ebp, dword [esi + 0x80]
mov eax, dword [esi + 0x64]
sub eax, ebp
sub eax, edi
add eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x18]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x1c], eax
mov eax, dword [esi + 0x84]
sub dword [esp + 0x20], eax
mov eax, dword [esi + 0x48]
sub eax, 1
cdq
idiv ecx
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
cdq
idiv ecx
cmp edi, eax
jle 0x47487a
mov eax, dword [esp + 0x18]
cdq
idiv ecx
add eax, 1
imul eax, ecx
cmp dword [ebx + eax*4 - 8], 0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + 0x54]
je 0x47484c
fild dword [esi + 0x18]
sub eax, ebp
cdq
sub eax, edx
fmul dword [esi + 0x4c]
mov edi, eax
sar edi, 1
call fcn.00485ee0
sub eax, edi
add eax, ebx
sub edi, ebx
add edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
jmp 0x47488a
sub ecx, 2
sub eax, ebp
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
cdq
sub eax, edx
mov edi, eax
fmul dword [esi + 0x4c]
sar edi, 1
call fcn.00485ee0
sub eax, edi
add eax, ebx
sub edi, ebx
add edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
jmp 0x47488a
mov dword [esp + 0x18], 0x500
mov dword [esp + 0x28], 0
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x4749a7
jmp 0x4748b0
mov ecx, dword [esi + 0x7c]
cmp dword [ecx + edi*4], 0
jne 0x47499b
mov ebx, dword [esp + 0x20]
movzx edx, word [ebx]
push edx
call fcn.00471ee0
add esp, 4
test eax, eax
mov eax, dword [esi + 0x80]
je 0x4748f7
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.00471cb0
add esp, 0x1c
add ebx, 2
jmp 0x474919
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.00471cb0
add esp, 0x1c
add ebx, 1
mov ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
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 + 0x2c], ebx
call fcn.00471d30
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jl 0x474963
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x90]
push eax
mov eax, dword [edx + edi*4]
push 1
push eax
call fcn.00472b50
mov dword [esp + 0x24], 0xffffffff
jmp 0x474979
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 0x90]
push 0
push 0
push edx
call fcn.00472b50
cmp byte [ebx], 0
je 0x4749a7
add ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
jl 0x47499b
sub ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x50]
add dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
add edi, 1
cmp edi, dword [esi + 0x20]
jl 0x4748b0
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 + 0x2c]
push eax
call fcn.00484c99
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x4749d0
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret
push ebp
call fcn.00484c99
add esp, 4
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret