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

Disassembly:
push 0xffffffffffffffff
push 0x4e0ad4
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50c620]
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 + 0x1c], 0
test edi, edi
jne 0x498841
push edx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edx
push 0x4eddac
mov byte [ebx], dl
call fcn.00402710
mov dword [esp + 0x11c], edi
mov dword [esp + 0x1c], 1
jmp 0x498c7f
push ebp
mov ecx, edi
call fcn.00498780
add esp, 4
test eax, eax
jne 0x498929
lea esi, [edi + ebp]
mov ecx, edi
cmp esi, edi
je 0x49887b
lea ecx, [ecx]
mov dl, byte [ecx]
mov al, dl
dec al
cmp al, 0x1e
jbe 0x498929
test dl, dl
je 0x498929
inc ecx
cmp esi, ecx
jne 0x498860
push 0x4f2950
lea ecx, [esp + 0x28]
call fcn.004023e0
mov dword [esp + 0x11c], 1
mov edx, eax
push edi
lea ecx, [esp + 0x40]
call fcn.0049c420
add esp, 4
mov byte [esp + 0x11c], 2
mov edx, eax
push 0x4f2950
mov ecx, ebx
call fcn.0049c420
add esp, 4
mov dword [esp + 0x1c], 1
mov byte [esp + 0x11c], 1
cmp dword [esp + 0x50], 0x10
jb 0x4988df
push dword [esp + 0x3c]
call fcn.004b17b6
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 0x49890f
push dword [esp + 0x24]
call fcn.004b17b6
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jmp 0x498c7f
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 0x498994
cmp dword [esp + 0x70], eax
je 0x498994
push 1
push eax
lea ecx, [esp + 0x64]
call fcn.004028e0
test al, al
je 0x498994
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 0x4f2950
lea ecx, [esp + 0x64]
call fcn.00449280
add ebp, edi
cmp edi, ebp
je 0x498bcb
mov edi, edi
mov cl, byte [edi]
movsx eax, cl
add eax, 0xfffffff8
cmp eax, 0x54
ja case.0x4989c8.11
movzx eax, byte [eax + 0x498ccc]
jmp dword [eax*4 + 0x498cac]
push 2
push 0x4f2954
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
push 2
push 0x4f2948
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
push 2
push 0x4f294c
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
push 2
push 0x4f2960
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
push 2
push 0x4f2964
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
push 2
push 0x4f2958
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
push 2
push 0x4f295c
lea ecx, [esp + 0x64]
call fcn.00449280
jmp 0x498bc2
mov al, cl
dec al
cmp al, 0x1e
jbe 0x498a86
test cl, cl
je 0x498a86
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x5c]
push dword [esp + 0x20]
push 1
call fcn.00406d20
jmp 0x498bc2
push 0x98
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004b5340
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.00499800
mov byte [esp + 0x11c], 4
mov edx, 0x4f296c
lea ecx, [esp + 0x74]
call fcn.0049c4b0
mov esi, eax
test esi, esi
jne 0x498ac3
xor ecx, ecx
jmp 0x498aca
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 0x498ae2
xor eax, eax
jmp 0x498ae9
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.004ad6a9
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.00499680
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.004999c0
mov byte [esp + 0x11c], 5
lea ecx, [esp + 0x5c]
push 0xffffffffffffffff
push 0
push eax
call fcn.004491d0
mov byte [esp + 0x11c], 4
cmp dword [esp + 0x38], 0x10
jb 0x498b67
push dword [esp + 0x24]
call fcn.004b17b6
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.004998f0
lea eax, [esp + 0xc4]
mov dword [esp + 0xc4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x54], eax
mov byte [esp + 0x11c], 3
push eax
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.004ad6fc
add esp, 4
inc edi
cmp edi, ebp
jne 0x4989b0
push 1
push 0x4f2950
lea ecx, [esp + 0x64]
call fcn.00449280
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov esi, dword [esp + 0x70]
cmp esi, 0x10
jae 0x498c11
mov eax, dword [esp + 0x6c]
inc eax
je 0x498c28
push eax
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.004b1010
mov esi, dword [esp + 0x7c]
add esp, 0xc
jmp 0x498c28
lea eax, [esp + 0x5c]
push eax
push ebx
lea ecx, [esp + 0x23]
call fcn.00403700
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x1c], 1
mov byte [esp + 0x11c], 0
cmp dword [esp + 0x70], 0x10
jb 0x498c6a
push dword [esp + 0x5c]
call fcn.004b17b6
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.004b0ff2
add esp, 0x10c
ret