Function at 0x5990a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x59b940
lea eax, [esi + 0x30]
xor ebx, ebx
mov edx, dword fs:[0]
mov dword [esi + 0x30], edx
mov dword fs:[0], eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp dword [ecx + edx + 0x38], 0
mov eax, dword [ecx + edx + 0xc]
sete bl
and eax, 0x16
shl ebx, 2
or eax, ebx
mov dword [ecx + edx + 0xc], eax
and eax, dword [ecx + edx + 0x10]
jne 0x5991fa
mov eax, dword [ecx]
mov dword [esi + 4], ecx
mov eax, dword [eax + 4]
mov edi, dword [ecx + eax + 0x38]
test edi, edi
je 0x599122
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 0x38], 0
push 1
call fcn.00548ff0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, edx
test byte [edx + ecx + 0xc], 6
jne 0x5991b7
mov edi, dword [eax + ecx + 0x38]
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov dword [esi + 0x38], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov dword [esi + 0x38], 2
lea eax, [esi + 8]
mov ecx, edi
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
add eax, dword [esi + 8]
adc ecx, dword [esi + 0xc]
and ecx, eax
mov eax, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x5991b7
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
xor ecx, ecx
cmp dword [eax + edx + 0x38], 0
mov ebx, dword [eax + edx + 0xc]
sete cl
and ebx, 0x15
shl ecx, 2
or ebx, ecx
or ebx, 2
mov dword [eax + edx + 0xc], ebx
mov ecx, dword [eax + edx + 0x10]
and ebx, ecx
jne 0x59923b
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edi, dword [eax + ecx + 0x38]
test edi, edi
je 0x5991e6
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov dword [esi + 0x38], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x38], 1
call ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
test al, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
mov ebx, str.ios_base::badbit_set
cmove edx, ecx
test al, 4
lea eax, [esi + 0x20]
cmove ebx, edx
push 1
push eax
call fcn.005f4e10
add esp, 8
lea edi, [esi + 8]
lea eax, [esi + 0x20]
mov ecx, edi
push eax
push ebx
call fcn.005ee390
push 0x6beec4
push edi
call fcn.0061df07
test cl, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
mov eax, dword [0x6d0fd0]
mov edi, str.ios_base::badbit_set
cmove edx, ecx
test bl, 4
mov ecx, dword [0x6d301c]
mov ebx, dword fs:[0x2c]
cmove edi, edx
mov ecx, dword [ebx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x5992a3
push 0x6d0fd0
call fcn.005d3d07
add esp, 4
cmp dword [0x6d0fd0], 0xffffffff
jne 0x5992a3
push 0x59b860
call fcn.005cf77c
add esp, 4
push 0x6d0fd0
call fcn.005d3d59
add esp, 4
lea ecx, [esi + 8]
push edi
push 0x6c8c20
push 1
call fcn.0049fdf0
mov dword [esi + 8], vtable.std::ios_base::failure.0
push 0x6beec4
lea eax, [esi + 8]
push eax
call fcn.0061df07
add esp, 8
nop dword [eax + eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [ecx + eax + 0x38], 0
jne 0x5992ee
add esp, 0x14
pop ebp
ret
nop
push ebp
sub esp, 0x14
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [ecx + eax + 0x38], 0
jne 0x59930e
add esp, 0x14
pop ebp
ret
nop
push ebp
sub esp, 0x14
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
call fcn.0061de80
int3