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

Disassembly:
push 0xffffffffffffffff
push 0x535dbe
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 0xc04d54
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], ebp
call fcn.00456f90
push 0x198
mov byte [esp + 0x7c], 1
call fcn.004554a0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x78], 2
je 0x506d2c
mov ecx, eax
call fcn.004f9040
mov esi, eax
jmp 0x506d2e
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 0x506d50
push 0xa
mov ecx, edi
call fcn.004e48c0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x506d64
add eax, eax
mov ecx, edi
push eax
call fcn.004e48c0
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.004579a0
mov eax, dword [ebx + 0x174]
test eax, eax
je 0x506d98
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.004585d0
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.004e3240
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 0x506df9
inc dword [edi + 4]
mov ecx, esi
call fcn.004e2f50
mov eax, dword [esp + 0x84]
test eax, eax
je 0x506e13
mov dword [esi + 0x120], eax
jmp 0x506e2d
push ecx
mov eax, esp
mov dword [esp + 0x8c], esp
test edi, edi
mov dword [eax], edi
je 0x506e26
inc dword [edi + 4]
mov ecx, esi
call fcn.004e32c0
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 0x5070d9
lea ebp, [ebx + 0x198]
mov dword [esp + 0x84], 0x1c
push 0x1a0
call fcn.004554a0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x78], 3
je 0x506ee1
push ebx
mov ecx, eax
call fcn.00508e70
mov esi, eax
jmp 0x506ee3
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 0x506f04
inc dword [edi + 4]
mov eax, dword [ebx + 0x174]
mov byte [esp + 0x78], 4
test eax, eax
je 0x506f1f
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call fcn.004585d0
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 0x506f5a
inc dword [edi + 4]
mov ecx, esi
call fcn.004e2f50
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
test edi, edi
mov dword [eax], edi
je 0x506f71
inc dword [edi + 4]
mov ecx, esi
call fcn.004e32c0
mov eax, 1
mov ecx, esi
push eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
call fcn.004e2180
mov eax, dword [esp + 0x14]
xor eax, 1
mov dword [esp + 0x14], eax
je 0x506ff0
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 0x507040
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 0x50706c
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 0x507080
add eax, eax
mov ecx, ebp
push eax
call fcn.004e48c0
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 0x5070a0
mov ecx, edi
call fcn.0046f6d0
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 0x506ebb
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.004572e0
test edi, edi
mov dword [esp + 0x78], 0xffffffff
je 0x507117
mov ecx, edi
call fcn.0046f6d0
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x10