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

Disassembly:
push 0xffffffffffffffff
push 0x530a5e
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 0xbb0794
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], ebp
call fcn.00454a70
push 0x198
mov byte [esp + 0x7c], 1
call fcn.00452f80
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x78], 2
je 0x501bcc
mov ecx, eax
call fcn.004f3f80
mov esi, eax
jmp 0x501bce
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 0x501bf0
push 0xa
mov ecx, edi
call fcn.004dfea0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x501c04
add eax, eax
mov ecx, edi
push eax
call fcn.004dfea0
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.00455480
mov eax, dword [ebx + 0x174]
test eax, eax
je 0x501c38
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.004560b0
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.004de820
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 0x501c99
inc dword [edi + 4]
mov ecx, esi
call fcn.004de530
mov eax, dword [esp + 0x84]
test eax, eax
je 0x501cb3
mov dword [esi + 0x120], eax
jmp 0x501ccd
push ecx
mov eax, esp
mov dword [esp + 0x8c], esp
test edi, edi
mov dword [eax], edi
je 0x501cc6
inc dword [edi + 4]
mov ecx, esi
call fcn.004de8a0
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 0x501f79
lea ebp, [ebx + 0x198]
mov dword [esp + 0x84], 0x1c
push 0x1a0
call fcn.00452f80
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x78], 3
je 0x501d81
push ebx
mov ecx, eax
call fcn.00503c90
mov esi, eax
jmp 0x501d83
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 0x501da4
inc dword [edi + 4]
mov eax, dword [ebx + 0x174]
mov byte [esp + 0x78], 4
test eax, eax
je 0x501dbf
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call fcn.004560b0
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 0x501dfa
inc dword [edi + 4]
mov ecx, esi
call fcn.004de530
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
test edi, edi
mov dword [eax], edi
je 0x501e11
inc dword [edi + 4]
mov ecx, esi
call fcn.004de8a0
mov eax, 1
mov ecx, esi
push eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
call fcn.004dd760
mov eax, dword [esp + 0x14]
xor eax, 1
mov dword [esp + 0x14], eax
je 0x501e90
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 0x501ee0
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 0x501f0c
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 0x501f20
add eax, eax
mov ecx, ebp
push eax
call fcn.004dfea0
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 0x501f40
mov ecx, edi
call fcn.0046c950
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 0x501d5b
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.00454dc0
test edi, edi
mov dword [esp + 0x78], 0xffffffff
je 0x501fb7
mov ecx, edi
call fcn.0046c950
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x10