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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x65d2dd
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
mov esi, ecx
mov eax, dword [esi + 0xbc]
test eax, eax
jne 0x47beb4
push edi
lea ecx, [esp + 0x18]
call fcn.0062cc19
lea ecx, [esp + 0x88]
mov dword [esp + 0xb8], 0
call fcn.0062cc19
mov edi, dword [esp + 0xc0]
mov byte [esp + 0xb8], 1
test edi, edi
jne 0x47b8d4
xor eax, eax
jmp 0x47b8d7
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0062ccd0
test edi, edi
jne 0x47b8f4
xor eax, eax
jmp 0x47b8f7
mov eax, dword [edi + 4]
push eax
call ebx
push eax
lea ecx, [esp + 0x94]
call fcn.0062ccd0
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x47b920
mov eax, dword [esi + 0xe0]
mov ebx, 0xc0c0c0
test eax, eax
jne 0x47b923
mov ebx, dword [esi + 0x3c]
lea edi, [esi + 0xb8]
mov ecx, edi
call fcn.0062d85d
mov ebp, dword [esp + 0xcc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
sub eax, ecx
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0xcc]
sub ecx, edx
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0062d806
test edi, edi
je 0x47b969
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x24]
push edi
push edx
call fcn.0062ce11
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x47b9a0
mov eax, dword [esi + 0xe0]
test eax, eax
jne 0x47b9a0
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x20]
push eax
push ebp
push ebp
push ecx
mov ecx, esi
call fcn.0047ae10
jmp 0x47b9ab
push ebx
push ebp
lea ecx, [esp + 0x28]
call fcn.0063df0b
mov eax, dword [esi + 0x78]
xor edi, edi
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x1c], ebp
je 0x47be5a
jmp 0x47b9c6
mov eax, dword [esp + 0x3c]
xor edi, edi
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
sub edx, ebx
cmp ebp, edx
jg 0x47be5a
mov ecx, dword [eax]
add eax, 8
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00628589
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0x67cc7c
lea ecx, [esp + 0x50]
mov byte [esp + 0xc0], 3
xor ebx, ebx
mov dword [esp + 0x30], edi
call fcn.0062cc19
mov eax, dword [esp + 0xc8]
mov byte [esp + 0xc0], 4
cmp eax, edi
jne 0x47ba2a
xor eax, eax
jmp 0x47ba2d
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call fcn.0062ccd0
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x672220
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xc0], 5
mov eax, dword [ecx - 8]
test eax, eax
je 0x47bcb4
mov al, byte [eax + ecx - 1]
mov dl, byte [esi + 0x61]
cmp al, dl
jne 0x47babb
push 0x6e6b74
push 6
push 2
mov eax, dword [esi + 0x54]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push eax
mov edi, 1
mov dword [esi + 0xac], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x18]
call fcn.0062d806
mov edx, dword [esi + 0x44]
jmp 0x47bc9a
cmp al, byte [esi + 0x62]
jne 0x47bb16
push 0x6e6b74
push 6
push 2
mov eax, dword [esi + 0x58]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push eax
mov edi, 1
mov dword [esi + 0xac], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x18]
call fcn.0062d806
mov ecx, dword [esi + 0x48]
push ecx
lea ecx, [esp + 0x24]
call fcn.0062cf85
lea edx, [esp + 0x14]
push edx
jmp 0x47bca9
cmp al, byte [esi + 0x60]
jne 0x47bb71
push 0x6e6b74
push 6
push 2
mov eax, dword [esi + 0x50]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push eax
mov edi, 1
mov dword [esi + 0xac], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x18]
call fcn.0062d806
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x20]
push eax
call fcn.0062cf85
lea ecx, [esp + 0x14]
push ecx
jmp 0x47bca9
cmp al, byte [esi + 0x63]
jne 0x47bc60
mov ecx, dword [ecx - 8]
lea edx, [esp + 0x40]
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00620c42
mov ebp, dword [esp + 0x40]
mov byte [esp + 0xc0], 6
call fcn.00642d98
mov eax, dword [eax + 0xc]
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x38]
call fcn.0062d806
test eax, eax
je 0x47bc49
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xa0]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov dword [esi + 0xc4], edx
mov edx, dword [esp + 0xcc]
mov dword [esi + 0xc0], ebp
mov ecx, dword [edx + 8]
mov eax, ecx
sub eax, dword [edx]
cdq
sub eax, edx
mov edx, eax
mov eax, ebp
sar edx, 1
mov dword [esp + 0x30], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
neg eax
sub eax, edx
mov edx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0xc8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xcc], eax
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.0062ce11
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xc0], 5
call fcn.00628814
mov ebp, dword [esp + 0x1c]
jmp 0x47bcb4
push 0x6e6b74
push 6
push 2
mov eax, dword [esi + 0x5c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x64
push 0
push 0
push 0
push eax
mov dword [esi + 0xac], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x18]
call fcn.0062d806
mov edx, dword [esi + 0x4c]
push edx
lea ecx, [esp + 0x24]
call fcn.0062cf85
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.0062ce64
mov ebx, eax
push 1
lea ecx, [esp + 0x24]
call fcn.0062cefb
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x47bd78
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
mov dword [esp + 0x68], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x6c], ebp
mov edx, dword [ecx + 8]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [edx - 8]
mov ecx, eax
sub ecx, edi
je 0x47bd53
mov ebp, dword [esi + 0x100]
xor ecx, ecx
test ebp, ebp
setne cl
add ecx, 0x820
sub eax, edi
push ecx
lea ecx, [esp + 0x6c]
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x78]
push edx
mov eax, dword [ecx - 8]
sub eax, edi
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
jmp 0x47bdd1
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x60]
push edx
push 1
push 0x6ed7e8
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
jmp 0x47bdd1
mov edx, dword [esi + 0xcc]
mov ecx, dword [esi + 0xc4]
mov edi, dword [esi + 0xc8]
mov eax, edx
add eax, ecx
mov ecx, dword [esi + 0xc0]
add ecx, edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], eax
lea edx, [esp + 0x80]
mov dword [esp + 0x88], ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x8c], edi
call fcn.0047a960
mov eax, dword [esi + 0xc4]
add ebp, eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x1c], ebp
je 0x47bded
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.0062ce11
test ebx, ebx
je 0x47bdfb
push ebx
lea ecx, [esp + 0x24]
call fcn.0062ce64
mov edi, 0x67b26c
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 7
call fcn.0062d85d
lea ecx, [esp + 0x50]
mov byte [esp + 0xc0], 3
call fcn.0062cd4e
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 8
call fcn.0062d85d
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 1
call fcn.00628814
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x47b9c0
xor edi, edi
mov eax, dword [esp + 0x4c]
pop ebp
cmp eax, edi
pop ebx
jne 0x47be68
xor eax, eax
jmp 0x47be6b
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0062ce11
lea ecx, [esp + 0x18]
call fcn.0062cd38
lea ecx, [esp + 0x88]
call fcn.0062cd38
lea ecx, [esp + 0x88]
mov byte [esp + 0xb8], 0
call fcn.0062cd4e
lea ecx, [esp + 0x18]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0062cd4e
pop edi
mov ecx, dword [esp + 0xac]
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret 8