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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7049fb
push eax
mov dword fs:[0], esp
sub esp, 0x64
lea edx, [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x78]
push 2
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 2
je 0x578500
lea ecx, [esp + 0x10]
call fcn.006609ef
lea eax, [esp + 0x10]
push 0x7878c0
push eax
mov dword [esp + 0x18], vtable.t_streambuf_read_failure.0
call fcn.006609b5
mov ecx, dword [esi + 0x2c]
push ebx
push ebp
push edi
mov eax, dword [ecx]
lea edi, [esi + 0x2c]
cmp eax, 1
jbe 0x578517
mov ecx, edi
call fcn.0051c4f0
mov esi, dword [edi]
add esi, 4
mov ebp, dword [esi + 8]
mov ebx, dword [esi + 4]
cmp ebp, ebp
mov dword [esp + 0x10], ebp
je 0x578548
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.0050b240
mov eax, dword [esp + 0x10]
add ebx, 0x48
add eax, 0x48
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x57852a
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push ebx
call fcn.00508a70
mov dword [esi + 8], ebx
mov eax, dword [edi]
cmp dword [eax], 1
jbe 0x57859a
push 0x14
call fcn.00652710
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x7c], 0
je 0x578587
mov ecx, dword [edi]
add ecx, 4
push ecx
mov ecx, eax
call fcn.005794e0
jmp 0x578589
xor eax, eax
mov ecx, dword [edi]
mov dword [esp + 0x7c], 0xffffffff
mov edx, dword [ecx]
dec edx
mov dword [ecx], edx
mov dword [edi], eax
mov esi, dword [edi]
mov ebp, dword [esp + 0x14]
add esi, 4
and ebp, 0xffff
mov eax, dword [esi + 4]
test eax, eax
jne 0x5785b4
xor edx, edx
jmp 0x5785ca
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, ebp
jae 0x578648
test ebp, ebp
mov eax, ebp
jge 0x5785d6
xor eax, eax
lea ecx, [eax + eax*8]
shl ecx, 3
push ecx
call fcn.00652710
mov edx, dword [esi + 8]
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, esi
push eax
mov eax, dword [esi + 4]
push edx
push eax
call fcn.00508aa0
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
cmp ebx, eax
mov dword [esp + 0x10], eax
je 0x57861b
push 0
mov ecx, ebx
call fcn.0050eb70
mov eax, dword [esp + 0x10]
add ebx, 0x48
cmp ebx, eax
jne 0x578607
mov eax, dword [esi + 4]
push eax
call fcn.00652870
mov ebx, dword [esp + 0x1c]
lea ecx, [ebp + ebp*8]
add esp, 4
lea edx, [ebx + ecx*8]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.00508a40
lea eax, [eax + eax*8]
mov dword [esi + 4], ebx
lea ecx, [ebx + eax*8]
mov dword [esi + 8], ecx
cmp word [esp + 0x14], 0
je 0x5786eb
mov bl, 3
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x28]
push edx
call fcn.0053bcf0
mov esi, eax
mov eax, dword [edi]
mov dword [esp + 0x7c], 1
cmp dword [eax], 1
jbe 0x57867f
mov ecx, edi
call fcn.0051c4f0
mov ecx, dword [edi]
push esi
add ecx, 4
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.0050c210
lea ecx, [esp + 0x28]
lea edx, [esp + 0x58]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov dword [esp + 0x80], 2
call fcn.00407e50
lea ecx, [esp + 0x3c]
mov dword [esp + 0x7c], 4
call fcn.004a3100
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.00407e50
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], 0xffffffff
call fcn.005a7940
dec ebp
jne 0x578656
mov ecx, dword [esp + 0x74]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 8