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

Disassembly:
push 0xffffffffffffffff
push 0x590563
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd0]
lea eax, [esp + 0x2c]
push eax
mov edi, ebp
call fcn.0042b9b0
mov ebx, dword [esp + 0xc8]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xbc], 0
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + 4]
lea edi, [ebx + 0x3c]
lea esi, [esp + esi + 0x34]
call fcn.0042f0b0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov esi, dword [esp + eax + 0x44]
mov ecx, esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + eax + 0x4c]
shr ecx, 8
and cl, 1
mov dword [esp + 0x28], esi
je 0x50fe16
test esi, esi
mov byte [esp + 0x17], 1
jne 0x50fe1b
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0xcc]
push 0xffffffffffffffff
push 0
call fcn.0043b7c0
cmp byte [esp + 0x17], 0
jne 0x50ff31
test esi, esi
jle 0x50fe4c
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x34]
mov dword [eax + 0x18], 0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00437800
test byte [ebx + 0x60], 2
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov byte [esp + 0x1c], 0
je 0x50febb
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
sub eax, edi
je 0x50fea5
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.004432f0
cmp byte [edi], al
je 0x50febb
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.004432f0
cmp byte [edi], al
je 0x50febb
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x38]
call fcn.004432f0
mov byte [esp + 0x1c], al
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ecx]
mov ecx, dword [ebx + 0x5c]
xor edx, edx
cmp byte [esp + 0x1c], dl
mov esi, eax
setne dl
mov dword [esp + 0x24], esi
lea eax, [esp + 0x24]
sub ecx, edx
cmp esi, ecx
mov dword [esp + 0x20], ecx
jb 0x50fee9
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0x64]
mov edx, dword [ebx + 0x60]
mov eax, dword [eax]
shr edx, 2
and edx, 0xffffff01
push edx
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
push edi
mov edi, dword [esp + 0xe8]
call fcn.0042f160
add esp, 0x1c
jmp 0x5101f3
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00437800
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x14]
mov eax, dword [eax]
mov esi, dword [edi]
mov ecx, dword [esp + 0xc8]
mov ebx, eax
sub ebx, esi
test byte [ecx + 0x60], 2
mov byte [esp + 0x17], 0
je 0x50ff9a
sub eax, esi
je 0x50ff95
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.004432f0
cmp byte [esi], al
je 0x50ff9a
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.004432f0
cmp byte [esi], al
je 0x50ff9a
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x28]
cmp ebx, eax
jne 0x50ffc8
mov ecx, dword [esp + 0xc8]
cmp eax, dword [ecx + 0x5c]
jg 0x50ffc8
cmp byte [esp + 0x17], 0
jne 0x50ffc8
mov ecx, dword [esp + 0xcc]
push ebx
push esi
call fcn.004381e0
jmp 0x5101f3
mov ecx, dword [esp + 0xcc]
push ebx
push esi
call fcn.004381e0
mov esi, ebp
call fcn.0050fbf0
lea edx, [esp + 0x6c]
push edx
mov edi, ebp
call fcn.0042b9b0
mov edi, dword [esp + 0xc8]
mov byte [esp + 0xbc], 1
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0xd4]
lea esi, [esp + esi + 0x74]
add edi, 0x3c
call fcn.0042f0b0
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0x74]
mov dword [eax + 0x18], 0
je 0x510038
lea edx, [esp + 0x74]
push edx
call fcn.00443370
add esp, 4
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.00437800
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ecx]
jne 0x510077
mov edx, dword [esp + 0xc8]
test byte [edx + 0x60], 2
je 0x510077
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x1b], 1
call fcn.00443370
add esp, 4
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov edx, dword [esp + 0xc8]
mov edx, dword [edx + 0x5c]
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
lea eax, [esp + 0x18]
jb 0x5100a5
lea eax, [esp + 0x20]
mov edi, dword [eax]
cmp dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
ja 0x5100c4
push edi
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.004381e0
jmp 0x51018a
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, cl
setne al
lea edx, [esp + 0x24]
add ebx, eax
cmp edi, ebx
mov dword [esp + 0x18], ebx
jb 0x5100e1
lea edx, [esp + 0x18]
mov edx, dword [edx]
movzx ecx, cl
mov esi, ecx
cmp esi, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
jae 0x510282
mov edi, esi
sub edi, eax
lea esp, [esp]
mov ebx, dword [esp + 0xcc]
cmp edi, dword [ebx + 0x14]
jbe 0x510115
call fcn.00565fa7
mov edx, dword [esp + 0x18]
cmp dword [ebx + 0x18], 0x10
jb 0x510120
mov eax, dword [ebx + 4]
jmp 0x510123
lea eax, [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov cl, byte [esi + ecx]
cmp cl, byte [edi + eax]
jne 0x510139
add esi, 1
add edi, 1
cmp esi, edx
jb 0x510100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp esi, edi
jb 0x510147
mov esi, ecx
mov edx, dword [esp + 0x1c]
push esi
push edx
mov ecx, ebx
call fcn.004381e0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0xa4]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
sub eax, edi
push edx
push eax
mov ecx, ebx
call fcn.00443740
mov eax, dword [esp + 0x1c]
sub edi, esi
push edi
add esi, eax
push esi
mov ecx, ebx
call fcn.00437ff0
lea eax, [esp + 0x6c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x74]
and eax, ecx
mov byte [esp + 0xbc], 0
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [ecx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov esi, dword [esp + 0x70]
test esi, esi
je 0x5101de
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5101de
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 0x5101de
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.00548dc4
add esp, 4
mov esi, ebp
call fcn.0050fbf0
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
mov dword [esp + 0xbc], 0xffffffff
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [ecx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x510253
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x510253
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 0x510253
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.std::ios_base.0
call fcn.00548dc4
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
mov ebx, dword [esp + 0xcc]
jmp 0x510141