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

Disassembly:
push 0xffffffffffffffff
push 0x59473b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x18], 0
test edi, edi
jne 0x502581
push edx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edx
push 0x5a85a4
mov byte [ebx], dl
call fcn.00404560
mov dword [esp + 0x11c], edi
mov dword [esp + 0x18], 1
jmp 0x5029cc
push ebp
mov ecx, edi
call fcn.005024c0
add esp, 4
test eax, eax
jne 0x502669
lea esi, [edi + ebp]
mov ecx, edi
cmp esi, edi
je 0x5025bb
lea ecx, [ecx]
mov dl, byte [ecx]
mov al, dl
dec al
cmp al, 0x1e
jbe 0x502669
test dl, dl
je 0x502669
inc ecx
cmp esi, ecx
jne 0x5025a0
push 0x5be538
lea ecx, [esp + 0x28]
call fcn.004039b0
mov dword [esp + 0x11c], 1
mov edx, eax
push edi
lea ecx, [esp + 0x40]
call fcn.00405170
add esp, 4
mov byte [esp + 0x11c], 2
mov edx, eax
push 0x5be538
mov ecx, ebx
call fcn.00405170
add esp, 4
mov dword [esp + 0x18], 1
mov byte [esp + 0x11c], 1
cmp dword [esp + 0x50], 0x10
jb 0x50261f
push dword [esp + 0x3c]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x11c], 0
cmp dword [esp + 0x38], 0x10
jb 0x50264f
push dword [esp + 0x24]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jmp 0x5029cc
mov dword [esp + 0x6c], 0
lea eax, [ebp*2 + 3]
mov dword [esp + 0x70], 0
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x11c], 3
mov esi, dword [esp + 0x6c]
cmp esi, eax
ja 0x5026d4
cmp dword [esp + 0x70], eax
je 0x5026d4
push 1
push eax
lea ecx, [esp + 0x64]
call fcn.00404700
test al, al
je 0x5026d4
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
cmovae eax, dword [esp + 0x5c]
mov byte [eax + esi], 0
push 1
push 0x5be538
lea ecx, [esp + 0x64]
call fcn.00403f10
add ebp, edi
cmp edi, ebp
je 0x50290b
mov edi, edi
mov cl, byte [edi]
movsx eax, cl
add eax, 0xfffffff8
cmp eax, 0x54
ja case.0x502708.11
movzx eax, byte [eax + 0x502a18]
jmp dword [eax*4 + 0x5029f8]
push 2
push 0x5be53c
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
push 2
push 0x5be530
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
push 2
push 0x5be534
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
push 2
push 0x5be548
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
push 2
push 0x5be54c
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
push 2
push 0x5be540
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
push 2
push 0x5be544
lea ecx, [esp + 0x64]
call fcn.00403f10
jmp 0x502902
mov al, cl
dec al
cmp al, 0x1e
jbe 0x5027c6
test cl, cl
je 0x5027c6
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x5c]
push dword [esp + 0x1c]
push 1
call fcn.00408b20
jmp 0x502902
push 0x98
lea eax, [esp + 0x78]
push 0
push eax
call fcn.0056cbb0
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.004f8400
mov byte [esp + 0x11c], 4
mov edx, 0x5be558
lea ecx, [esp + 0x74]
call fcn.004f9340
mov esi, eax
test esi, esi
jne 0x502803
xor ecx, ecx
jmp 0x50280a
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
test esi, esi
jne 0x502822
xor eax, eax
jmp 0x502829
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
or dword [eax + 0x14], 4
mov eax, dword [esi]
push 0
push 4
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
lea eax, [esp + 0x44]
push eax
call fcn.00582bdc
mov ecx, dword [esi]
add esp, 0xc
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
movsx eax, byte [edi]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00503f30
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.004f85c0
mov byte [esp + 0x11c], 5
lea ecx, [esp + 0x5c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e60
mov byte [esp + 0x11c], 4
cmp dword [esp + 0x38], 0x10
jb 0x5028a7
push dword [esp + 0x24]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0xc4]
call fcn.004f84f0
lea eax, [esp + 0xc4]
mov dword [esp + 0xc4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x20], eax
mov byte [esp + 0x11c], 3
push eax
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.0056116e
add esp, 4
inc edi
cmp edi, ebp
jne 0x5026f0
push 1
push 0x5be538
lea ecx, [esp + 0x64]
call fcn.00403f10
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [esp + 0x70], 0x10
jae 0x50294b
mov eax, dword [esp + 0x6c]
inc eax
je 0x502971
push eax
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.00565090
add esp, 0xc
jmp 0x502971
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x11c], 7
mov eax, dword [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x11c], 3
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x14], eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x18], 1
mov byte [esp + 0x11c], 0
cmp dword [esp + 0x70], 0x10
jb 0x5029b7
push dword [esp + 0x5c]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov eax, ebx
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00564de8
add esp, 0x10c
ret