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

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
push edi
xor bl, bl
mov edi, ecx
mov ecx, dword [0x59409c]
mov dword [esp + 0x14], edx
mov esi, 1
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], 1
call fcn.00431e50
mov ecx, dword [0x594088]
mov dword [esp + 0x4c], eax
call fcn.00431e50
mov dword [esp + 0x50], eax
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x2c], 0x190
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
je 0x46fc60
cmp byte [eax], 0x2d
jne 0x46fc60
push 0x68
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fbcb
mov bl, 1
mov eax, dword [edi + 4]
push 0x6e
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fbe2
mov byte [esp + 0x13], 0
mov ecx, dword [edi + 4]
push 0x72
push ecx
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fbf9
mov byte [esp + 0x11], 1
mov edx, dword [edi + 4]
push 0x70
push edx
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fc10
mov byte [esp + 0x10], 1
mov eax, dword [edi + 4]
push 0x62
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fc2a
mov dword [esp + 0x3c], 2
mov ecx, dword [edi + 4]
push 0x6f
push ecx
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fc44
mov dword [esp + 0x2c], 0x2bc
mov edx, dword [edi + 4]
push 0x63
push edx
call fcn.00563730
add esp, 8
test eax, eax
je 0x46fc5b
mov byte [esp + 0x12], 1
mov esi, 2
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x4701a2
xor edx, edx
call fcn.004dc5a0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x4701a6
mov eax, dword [ebp + 0x85c]
test eax, eax
je 0x4701a6
mov eax, dword [ebp + 0x73c]
test eax, eax
je 0x4701a6
mov eax, dword [ebp + 0x940]
test eax, eax
je 0x4701a6
cmp dword [ebp + 0x700], 9
jne 0x4701a6
test bl, bl
je 0x46fcc3
mov ecx, dword [ebp]
call fcn.00491b20
mov eax, dword [edi + esi*4 + 4]
inc esi
test eax, eax
jne 0x46fcf1
mov al, byte [esp + 0x13]
test al, al
je 0x4701a2
mov ecx, ebp
call fcn.0046e790
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4
mov bl, byte [esp + 0x11]
test bl, bl
push eax
je 0x46fd04
call fcn.00563a14
add esp, 4
jmp 0x46fd1e
call fcn.00563a6c
add esp, 4
mov ecx, eax
call fcn.00431e50
mov dword [esp + 0x4c], eax
mov eax, dword [eax*4 + 0x593350]
inc esi
mov dword [esp + 0x34], eax
cmp dword [edi + esi*4], 0
je 0x4701a2
mov ecx, dword [0x594088]
call fcn.00431e50
mov ecx, dword [eax*4 + 0x593350]
cmp dword [esp + 0x3c], 2
mov dword [esp + 0x30], ecx
jne 0x46fd8f
test bl, bl
je 0x46fd60
mov edx, dword [edi + esi*4]
push edx
call fcn.00563a14
add esp, 4
mov dword [esp + 0x30], eax
jmp 0x46fd82
mov eax, dword [edi + esi*4]
push eax
call fcn.00563a6c
add esp, 4
mov ecx, eax
call fcn.00431e50
mov ecx, dword [eax*4 + 0x593350]
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
mov eax, dword [edi + esi*4 + 4]
inc esi
test eax, eax
je 0x4701a2
mov edx, dword [esp + 0x14]
mov byte [edx], 0
mov ecx, dword [edi + esi*4]
mov ebx, dword [ebp + 0x9d4]
call fcn.004ed210
test eax, eax
jne 0x46fdf6
push eax
mov eax, dword [esp + 0x18]
push 0x104
push eax
mov edx, esi
mov ecx, edi
call fcn.004ede70
mov esi, eax
test esi, esi
jge 0x46fdc9
push 3
jmp 0x4701a8
mov eax, dword [edi + esi*4 + 4]
inc esi
test eax, eax
je 0x4701a2
push eax
call fcn.00563a6c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
add esp, 4
push 1
push ecx
mov ecx, dword [ebp]
push eax
call fcn.00488440
mov ebx, eax
inc esi
mov eax, dword [edi + esi*4]
test eax, eax
je 0x4701a2
mov ecx, dword [edi + esi*4 + 4]
test ecx, ecx
je 0x4701a2
push eax
call fcn.00563a6c
mov dword [esp + 0x20], eax
mov edx, dword [edi + esi*4 + 4]
push edx
call fcn.00563a6c
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x1a]
add esp, 8
add esi, 2
test al, al
je 0x46fe6a
mov eax, dword [edi + esi*4]
test eax, eax
je 0x4701a2
mov ecx, dword [edi + esi*4 + 4]
test ecx, ecx
je 0x4701a2
push eax
call fcn.00563a6c
mov dword [esp + 0x28], eax
mov eax, dword [edi + esi*4 + 4]
push eax
call fcn.00563a6c
add esp, 8
mov dword [esp + 0x28], eax
add esi, 2
jmp 0x46fe8e
mov edx, dword [ebp + 0x940]
lea ecx, [esp + 0x58]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
cmp dword [edi + esi*4], 0
je 0x4701a2
mov ebp, dword [esp + 0xac]
push edi
mov edx, ebp
mov ecx, esi
mov byte [ebp], 0
call fcn.004ed300
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x85c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x38], eax
je 0x46fee7
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
jne 0x46fef6
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x85c]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x940]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
cmp byte [edx], 0
je 0x46ff42
mov edi, dword [esp + 0x2c]
mov eax, edx
push eax
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x44], eax
jne 0x46ffa3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add eax, 0x970
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46ff51
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x9d8]
mov ebx, dword [eax + 0x9d4]
mov eax, dword [eax + 0x9dc]
push ecx
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x44], eax
je 0x46ffb1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], eax
jmp 0x46ffb9
mov dword [esp + 0x48], 0
mov al, byte [esp + 0x12]
test al, al
jne 0x47001c
lea edx, [esp + 0x70]
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x10]
test al, al
je 0x470000
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp edi, 0x2bc
push 0
sete dl
push 0
push ecx
mov ecx, ebp
push edx
mov edx, dword [esp + 0x24]
push ebx
call fcn.00472da0
jmp 0x470018
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470005
sub eax, edx
push eax
mov edx, ebp
mov ecx, esi
call fcn.004f8fc0
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x94c]
jle 0x470038
mov dword [ecx + 0x94c], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add eax, edx
cmp eax, dword [ecx + 0x950]
jle 0x470050
mov dword [ecx + 0x950], eax
mov ecx, dword [esp + 0x34]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x30]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x10]
add edi, ecx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x20]
add edx, edi
test al, al
mov dword [esp + 0x28], edx
je 0x4700e9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push edx
movzx edx, byte [esp + 0x15]
push eax
mov eax, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x38]
push 2
push 0
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x6c]
push ebx
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x50]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 4], edi
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, ebp
mov ecx, esi
call fcn.00472690
jmp 0x47010d
mov eax, ebp
lea ebx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4700f0
push 0
sub eax, ebx
push eax
push ebp
lea edx, [esp + 0x28]
push edx
push 4
push edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x13]
sub ebx, eax
sub edi, ecx
test dl, dl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
je 0x47014c
push 0xcc0020
push ecx
push eax
push esi
mov edx, edi
push edx
mov edx, ebx
push edx
push ecx
push eax
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x44]
test edi, edi
je 0x470167
mov ecx, dword [esp + 0x48]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x54]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x85c]
push eax
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4
push 0
jmp 0x4701a8
push 7
mov edx, dword [edi]
xor ecx, ecx
push ecx
call fcn.00475f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4