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

Disassembly:
push 0xffffffffffffffff
push 0x473840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ebx, [esi + 0x104]
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.0045b7b3
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x405712
lea ecx, [esp + 0x74]
mov dword [esp + 0x34], 4
call fcn.0045c6d0
lea ecx, [esp + 0x58]
mov byte [esp + 0x34], 3
call fcn.0045c6d0
lea ecx, [esp + 0x50]
mov byte [esp + 0x34], 2
call fcn.0045c6d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x34], 1
call fcn.0045c6d0
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], 0xffffffff
call fcn.0045c6d0
xor eax, eax
jmp 0x4059f4
mov eax, dword [0x48e444]
mov dword [esp + 0x10], eax
lea ebp, [esi + 0x120]
mov edx, dword [esp + 0x40]
mov ecx, 0xf
xor eax, eax
mov edi, ebp
mov byte [esp + 0x34], 5
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
push edi
push ecx
push edx
mov ecx, esi
call fcn.00406250
mov dword [ebp], eax
mov eax, dword [esp + 0x74]
mov ecx, esi
sub ecx, eax
lea edx, [ecx + 0x13c]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40575b
mov eax, dword [esp + 0x5c]
mov dl, byte [esp + 0x60]
neg eax
sbb eax, eax
mov byte [esi + 0x134], dl
and eax, 0x258
lea ebp, [esi + 0x118]
add eax, 0xc8
mov dword [esi + 0x130], eax
mov eax, dword [esp + 0x64]
mov cl, byte [edi + 0xa8]
test eax, eax
setne dl
mov byte [esi + 0x137], cl
add dl, 3
mov ecx, ebp
mov byte [esi + 0x13a], dl
call fcn.004642da
lea eax, [esi + 0x120]
push eax
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
push eax
mov ecx, ebp
call fcn.00464283
mov edi, dword [esp + 0x3c]
push ebp
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x28]
mov eax, dword [esp + 0x68]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
push 1
mov ecx, edi
call fcn.00463a78
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x14]
call fcn.0045c7bd
mov edx, dword [esp + 0x10]
push 0x4922c4
push edx
call fcn.004472b6
add esp, 8
test eax, eax
je 0x4058bc
push 0x48c238
lea ecx, [esp + 0x14]
call fcn.00459b16
mov edi, eax
test edi, edi
jl 0x405884
lea eax, [edi - 1]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00459a7c
mov ecx, dword [ebx + 8]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0x3c], 6
call fcn.0045b928
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 5
call fcn.0045c6d0
inc edi
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x18]
call fcn.00459947
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 7
call fcn.0045c7bd
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0045c6d0
jmp 0x4058a2
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.0045b928
push 0x4922c4
lea ecx, [esp + 0x14]
call fcn.0045c80d
mov edx, dword [esp + 0x10]
push 0x4922c4
push edx
call fcn.004472b6
add esp, 8
test eax, eax
jne 0x405810
mov eax, dword [esi + 0x10c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x405996
mov eax, dword [esp + 0x94]
mov ecx, ebx
push eax
push edi
call fcn.00406240
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.0045c445
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 5
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00420aa0
mov ecx, eax
call fcn.0041ee20
mov ecx, dword [esi + 0x108]
lea ebp, [edi*4]
push eax
add ecx, ebp
mov byte [esp + 0x38], 9
call fcn.0045c7bd
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0045c6d0
mov eax, dword [esi + 0x108]
lea edx, [esp + 0x24]
add eax, ebp
push edx
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x88]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00406250
mov edx, dword [esp + 0x14]
lea eax, [ebp + eax*2]
add edx, eax
mov eax, dword [esi + 0x10c]
inc edi
mov dword [esp + 0x14], edx
cmp edi, eax
jl 0x4058d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0045c6d0
lea ecx, [esp + 0x74]
mov dword [esp + 0x34], 0xd
call fcn.0045c6d0
lea ecx, [esp + 0x58]
mov byte [esp + 0x34], 0xc
call fcn.0045c6d0
lea ecx, [esp + 0x50]
mov byte [esp + 0x34], 0xb
call fcn.0045c6d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x34], 0xa
call fcn.0045c6d0
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], 0xffffffff
call fcn.0045c6d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 0x5c