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

Disassembly:
push 0xffffffffffffffff
push 0x53479e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
push 0xbf39e4
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], ebp
call fcn.00457080
push 0x198
mov byte [esp + 0x7c], 1
call fcn.00455590
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x78], 2
je 0x5056bc
mov ecx, eax
call fcn.004f7a10
mov esi, eax
jmp 0x5056be
xor esi, esi
mov eax, dword [ebx + 0x1a4]
lea edi, [ebx + 0x1a4]
cmp eax, ebp
mov byte [esp + 0x78], 1
mov dword [esp + 0x14], ebp
jne 0x5056e0
push 0xa
mov ecx, edi
call fcn.004e37d0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x5056f4
add eax, eax
mov ecx, edi
push eax
call fcn.004e37d0
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov ebp, 1
mov dword [edx + ecx*4], esi
mov edx, dword [edi + 4]
inc edx
push ebp
lea ecx, [esp + 0x64]
mov dword [edi + 4], edx
call fcn.00457a90
mov eax, dword [ebx + 0x174]
test eax, eax
je 0x505728
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.004586c0
fild dword [esp + 0x88]
mov ecx, dword [ebx + 0x1dc]
mov edx, dword [esi]
push str.verdana_12
push ebp
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
push 0x41c00000
push eax
push 0x40800000
push ecx
push ebx
mov ecx, esi
call dword [edx + 0x18]
push str.facfont_20
mov ecx, esi
call fcn.004e2150
mov edi, dword [esp + 0x80]
push ecx
mov eax, esp
mov dword [esi + 0x16c], ebp
mov dword [esi + 0x170], ebp
mov dword [esp + 0x8c], esp
test edi, edi
mov dword [eax], edi
je 0x505789
inc dword [edi + 4]
mov ecx, esi
call fcn.004e1e50
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5057a3
mov dword [esi + 0x120], eax
jmp 0x5057bd
push ecx
mov eax, esp
mov dword [esp + 0x8c], esp
test edi, edi
mov dword [eax], edi
je 0x5057b6
inc dword [edi + 4]
mov ecx, esi
call fcn.004e21d0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0x3f333333
mov dword [esp + 0x28], 0x3f19999a
mov dword [esp + 0x2c], 0x3d4ccccd
mov dword [esp + 0x30], 0x3f800000
call dword [eax + 0x20]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x88], 0
mov eax, dword [ecx + 4]
test eax, eax
jle 0x505a69
lea ebp, [ebx + 0x198]
mov dword [esp + 0x84], 0x1c
push 0x1a0
call fcn.00455590
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x78], 3
je 0x505871
push ebx
mov ecx, eax
call fcn.00507800
mov esi, eax
jmp 0x505873
xor esi, esi
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov eax, dword [edx]
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
test edi, edi
mov dword [esp + 0x18], edi
je 0x505894
inc dword [edi + 4]
mov eax, dword [ebx + 0x174]
mov byte [esp + 0x78], 4
test eax, eax
je 0x5058af
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call fcn.004586c0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1dc]
fild dword [esp + 0x84]
mov eax, dword [esi]
push str.verdana_12
push 0
push 0x41800000
push ecx
push ecx
mov ecx, esi
fstp dword [esp]
push edx
push ebx
call dword [eax + 0x18]
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
test edi, edi
mov dword [eax], edi
je 0x5058ea
inc dword [edi + 4]
mov ecx, esi
call fcn.004e1e50
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
test edi, edi
mov dword [eax], edi
je 0x505901
inc dword [edi + 4]
mov ecx, esi
call fcn.004e21d0
mov eax, 1
mov ecx, esi
push eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
call fcn.004e1080
mov eax, dword [esp + 0x14]
xor eax, 1
mov dword [esp + 0x14], eax
je 0x505980
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0x3d8f5c29
mov dword [esp + 0x28], 0x3d75c28f
mov dword [esp + 0x2c], 0x3ba3d70a
mov dword [esp + 0x30], 0x3f800000
call dword [eax + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x30]
jmp 0x5059d0
mov edx, dword [esi]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x44], 0x3e570a3d
mov dword [esp + 0x48], 0x3e3851ec
mov dword [esp + 0x4c], 0x3c75c28f
mov dword [esp + 0x50], 0x3f800000
call dword [edx + 0x20]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x50]
mov edx, dword [esi]
push 1
mov ecx, esi
push eax
call dword [edx + 0x1c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3c]
cmp dword [ebp], 0
jne 0x5059fc
push 0x28
mov dword [ebp + 8], 0xa
call dword [sym.imp.system86.dll_MemoryMalloc]
add esp, 4
mov dword [ebp], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
cmp ecx, eax
jne 0x505a10
add eax, eax
mov ecx, ebp
push eax
call fcn.004e37d0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov byte [esp + 0x78], 1
mov dword [edx + ecx*4], esi
mov ecx, dword [ebp + 4]
inc ecx
test edi, edi
mov dword [ebp + 4], ecx
je 0x505a30
mov ecx, edi
call fcn.0046f7c0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
inc eax
mov edx, dword [ecx + 4]
add esi, 0x10
cmp eax, edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], esi
jl 0x50584b
mov edi, dword [esp + 0x80]
fld dword [esp + 0x10]
mov ecx, dword [ebx + 0x1d0]
mov byte [esp + 0x78], 0
fadd dword [ebx + 0x1dc]
inc ecx
mov dword [ebx + 0x1d0], ecx
lea ecx, [esp + 0x60]
fstp dword [ebx + 0x1dc]
call fcn.004573d0
test edi, edi
mov dword [esp + 0x78], 0xffffffff
je 0x505aa7
mov ecx, edi
call fcn.0046f7c0
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x10