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

Disassembly:
push 0xffffffffffffffff
push 0x597c13
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd8]
lea eax, [esp + 0x34]
push eax
mov edi, ebp
call fcn.0050f510
mov edi, dword [esp + 0xd0]
mov eax, dword [esp + 0xdc]
xor ebx, ebx
mov dword [esp + 0xc4], ebx
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + 4]
add edi, 0x3c
lea esi, [esp + esi + 0x3c]
call fcn.0050fb40
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x4c]
mov edi, dword [esp + eax + 0x54]
mov dword [esp + 0x28], ecx
shr ecx, 8
and cl, 1
mov dword [esp + 0x2c], edi
je 0x50e682
cmp edi, ebx
mov byte [esp + 0x1b], 1
jne 0x50e686
mov byte [esp + 0x1b], bl
mov esi, dword [esp + 0xd4]
or eax, 0xffffffff
xor ebx, ebx
call fcn.0043ad60
cmp byte [esp + 0x1b], bl
jne 0x50e79e
cmp edi, ebx
jle 0x50e6b3
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x3c]
mov dword [eax + 0x18], ebx
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx]
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00478660
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0xd0]
test byte [edi + 0x60], 2
mov esi, dword [eax]
mov dword [esp + 0x20], esi
je 0x50e72e
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
sub eax, esi
test eax, 0xfffffffe
je 0x50e719
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.00442570
cmp word [esi], ax
je 0x50e72e
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.00442570
cmp word [esi], ax
je 0x50e72e
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x40]
call fcn.00442570
movzx ebx, ax
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ecx]
mov ecx, dword [edi + 0x5c]
sar eax, 1
xor edx, edx
test bx, bx
setne dl
mov esi, eax
mov dword [esp + 0x24], esi
lea eax, [esp + 0x24]
sub ecx, edx
cmp esi, ecx
mov dword [esp + 0x1c], ecx
jb 0x50e75d
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x60]
movzx esi, word [esp + edx + 0x6c]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
shr ecx, 2
and ecx, 0xffffff01
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push edx
mov edx, dword [esp + 0x2c]
push esi
push ecx
push eax
mov eax, dword [esp + 0xec]
push edx
call fcn.0050fc60
add esp, 0x1c
jmp 0x50ea7f
mov eax, dword [esp + 0xcc]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00478660
mov edx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x14]
mov eax, dword [edx]
mov esi, dword [edi]
mov ecx, dword [esp + 0xd0]
mov ebx, eax
sub ebx, esi
sar ebx, 1
test byte [ecx + 0x60], 2
mov byte [esp + 0x1b], 0
je 0x50e810
sub eax, esi
test eax, 0xfffffffe
je 0x50e80b
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.00442570
cmp word [esi], ax
je 0x50e810
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.00442570
cmp word [esi], ax
je 0x50e810
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jne 0x50e83e
mov ecx, dword [esp + 0xd0]
cmp eax, dword [ecx + 0x5c]
jg 0x50e83e
cmp byte [esp + 0x1b], 0
jne 0x50e83e
push ebx
push esi
mov esi, dword [esp + 0xdc]
call fcn.0043a8d0
jmp 0x50ea7f
push ebx
push esi
mov esi, dword [esp + 0xdc]
call fcn.0043a8d0
mov esi, ebp
call fcn.0050fbf0
lea edx, [esp + 0x74]
push edx
mov edi, ebp
call fcn.0050f510
mov edi, dword [esp + 0xd0]
mov byte [esp + 0xc4], 1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0xdc]
lea esi, [esp + esi + 0x7c]
add edi, 0x3c
call fcn.0050fb40
cmp byte [esp + 0x1b], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0x7c]
mov dword [eax + 0x18], 0
je 0x50e8ae
lea edx, [esp + 0x7c]
push edx
call fcn.005093c0
add esp, 4
mov eax, dword [esp + 0xcc]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.00478660
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ecx]
test eax, 0xfffffffe
jne 0x50e8f5
mov edx, dword [esp + 0xd0]
test byte [edx + 0x60], 2
je 0x50e8f5
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x1f], 1
call fcn.005093c0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esp + 0xd0]
mov ecx, dword [ecx + 0x5c]
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
cmp eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x20]
jb 0x50e925
lea eax, [esp + 0x1c]
mov edi, dword [eax]
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
ja 0x50e944
mov esi, dword [esp + 0xd4]
push edi
push edx
call fcn.0043a8d0
jmp 0x50ea10
mov al, byte [esp + 0x1b]
xor ecx, ecx
test al, al
setne cl
lea esi, [esp + 0x1c]
add ebx, ecx
cmp edi, ebx
mov dword [esp + 0x20], ebx
jb 0x50e961
lea esi, [esp + 0x20]
mov esi, dword [esi]
movzx ebx, al
cmp ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], ebx
jae 0x50eb0e
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x28], eax
lea edi, [eax + eax]
mov esi, dword [esp + 0xd4]
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 0x14]
jbe 0x50e996
call fcn.00565fa7
cmp dword [esi + 0x18], 8
jb 0x50e9a1
mov eax, dword [esi + 4]
jmp 0x50e9a4
lea eax, [esi + 4]
mov ecx, dword [esp + 0x24]
mov dx, word [ecx + ebx*2]
cmp dx, word [eax + edi]
jne 0x50e9c3
add dword [esp + 0x28], 1
add ebx, 1
add edi, 2
cmp ebx, dword [esp + 0x20]
jb 0x50e981
mov edi, dword [esp + 0x1c]
mov edx, ecx
cmp ebx, edi
jb 0x50e9d1
mov ebx, dword [esp + 0x30]
push ebx
push edx
call fcn.0043a8d0
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
movzx ecx, word [esp + edx + 0xac]
mov eax, dword [esp + 0x2c]
sub eax, edi
push ecx
mov edi, esi
call fcn.00487660
mov eax, dword [esp + 0x1c]
sub eax, ebx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + ebx*2]
push ecx
mov ecx, dword [esp + 0xdc]
call fcn.0043a690
lea eax, [esp + 0x74]
neg eax
sbb eax, eax
lea edx, [esp + 0x7c]
and eax, edx
mov byte [esp + 0xc4], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov esi, dword [esp + 0x78]
test esi, esi
je 0x50ea64
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50ea64
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50ea64
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.00548dc4
add esp, 4
mov esi, ebp
call fcn.0050fbf0
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
lea ecx, [esp + 0x3c]
and eax, ecx
mov dword [esp + 0xc4], 0xffffffff
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [ecx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x50eadf
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x50eadf
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50eadf
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], vtable.std::ios_base.0
call fcn.00548dc4
add esp, 4
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
mov esi, dword [esp + 0xd4]
jmp 0x50e9c9