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

Disassembly:
push 0xffffffffffffffff
push 0x53484e
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 0xbf39a4
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], ebp
call fcn.00457220
push 0x198
mov byte [esp + 0x7c], 1
call fcn.00455730
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x78], 2
je 0x50574c
mov ecx, eax
call fcn.004f7aa0
mov esi, eax
jmp 0x50574e
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 0x505770
push 0xa
mov ecx, edi
call fcn.004e3860
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x505784
add eax, eax
mov ecx, edi
push eax
call fcn.004e3860
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.00457c30
mov eax, dword [ebx + 0x174]
test eax, eax
je 0x5057b8
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00458860
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.004e21e0
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 0x505819
inc dword [edi + 4]
mov ecx, esi
call fcn.004e1ee0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x505833
mov dword [esi + 0x120], eax
jmp 0x50584d
push ecx
mov eax, esp
mov dword [esp + 0x8c], esp
test edi, edi
mov dword [eax], edi
je 0x505846
inc dword [edi + 4]
mov ecx, esi
call fcn.004e2260
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 0x505af9
lea ebp, [ebx + 0x198]
mov dword [esp + 0x84], 0x1c
push 0x1a0
call fcn.00455730
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x78], 3
je 0x505901
push ebx
mov ecx, eax
call fcn.00507890
mov esi, eax
jmp 0x505903
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 0x505924
inc dword [edi + 4]
mov eax, dword [ebx + 0x174]
mov byte [esp + 0x78], 4
test eax, eax
je 0x50593f
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call fcn.00458860
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 0x50597a
inc dword [edi + 4]
mov ecx, esi
call fcn.004e1ee0
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
test edi, edi
mov dword [eax], edi
je 0x505991
inc dword [edi + 4]
mov ecx, esi
call fcn.004e2260
mov eax, 1
mov ecx, esi
push eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
call fcn.004e1110
mov eax, dword [esp + 0x14]
xor eax, 1
mov dword [esp + 0x14], eax
je 0x505a10
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 0x505a60
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 0x505a8c
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 0x505aa0
add eax, eax
mov ecx, ebp
push eax
call fcn.004e3860
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 0x505ac0
mov ecx, edi
call fcn.0046f960
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 0x5058db
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.00457570
test edi, edi
mov dword [esp + 0x78], 0xffffffff
je 0x505b37
mov ecx, edi
call fcn.0046f960
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x10