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

Disassembly:
push 0xa0
mov eax, 0x5486c2
call fcn.004e6a52
mov eax, ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, edi
mov dword [ebp - 0x54], edi
mov dword [eax + 0x30], ebx
call fcn.004956bf
mov ecx, dword [edi + 0x78]
lea edx, [edi + 0x18]
push edx
push 1
push ebx
mov eax, dword [ecx]
push ebx
push ecx
mov dword [ebp - 0x60], edx
call dword [eax + 0x10]
test eax, eax
jne 0x49601c
mov eax, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], eax
xorps xmm0, xmm0
mov dword [ebp - 4], ebx
mov esi, ebx
movlpd qword [ebp - 0x70], xmm0
mov dword [ebp - 0x74], esi
push 0x20
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push dword [edi + 0x78]
call fcn.00484b85
add esp, 0xc
test eax, eax
jne 0x496001
push 8
lea eax, [ebp - 0x40]
push str.MSCF
push eax
call fcn.004f563a
add esp, 0xc
test eax, eax
jne 0x495c6c
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x20]
call fcn.00496074
test al, al
je 0x495c6c
push 0x28
call fcn.0046cf9d
mov esi, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x48], esi
pop ecx
test esi, esi
je 0x495bdb
mov dword [esi + 4], ebx
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], ebx
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x495bdd
mov esi, ebx
push dword [edi + 0x78]
lea ecx, [esi + 8]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x74], esi
call fcn.0047005d
mov eax, dword [edi + 0x6c]
sub eax, 8
mov dword [esi + 0x14], ebx
push 0x8000
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov dword [ebp - 0x64], ebx
call fcn.004e6464
push 0x20
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x50], eax
push ecx
push eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0x8000
call fcn.004f4b10
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
mov eax, dword [esi]
add esp, 0x10
add ecx, 0x20
push edx
push 0x7fe0
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x496001
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
add eax, 0x20
mov ecx, dword [ebp - 0x70]
add eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ecx
lea ecx, [edx + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x495dd0
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x495c7e
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x495ffe
mov eax, dword [edi + 0x78]
push 0x20
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0xac]
push 0x8000
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa0], str.MSCF
mov dword [ebp - 0x9c], 8
call fcn.00495aad
push eax
lea ecx, [ebp - 0x68]
call fcn.004799a2
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x40]
push 0x20
push ecx
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xac], eax
call fcn.004f4b10
mov eax, dword [edi + 0x18]
add esp, 0xc
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0xa4], 0x20
mov dword [ebp - 0xa8], 1
jmp 0x495d21
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xac]
add eax, ecx
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [edi + 0x20]
call fcn.00496074
test al, al
jne 0x495d35
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xac]
call fcn.00495937
test eax, eax
je 0x495cf9
jmp 0x496001
mov ecx, dword [ebp - 0x84]
mov edx, ebx
add ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x80]
adc eax, edx
mov dword [ebp - 0x4c], edx
push 0x28
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
call fcn.0046cf9d
mov esi, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x48], esi
pop ecx
test esi, esi
je 0x495d70
mov dword [esi + 4], ebx
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], ebx
jmp 0x495d75
mov esi, ebx
mov dword [ebp - 0x58], esi
push dword [edi + 0x78]
lea ecx, [esi + 8]
call fcn.0047005d
test esi, esi
je 0x495d8a
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov edx, dword [ebp - 0xa4]
mov eax, edx
mov ecx, dword [ebp - 0x5c]
sub eax, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x14], ebx
cmp eax, dword [ebp - 0x48]
ja 0x495dbb
mov dword [esi + 0x10], ebx
mov edx, dword [edi + 0x6c]
add edx, ecx
jmp 0x495dc1
sub eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
add edx, dword [ebp - 0x50]
add ecx, 0x20
add ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], edx
mov dword [eax + 0x18], 0x8000
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], ecx
mov byte [eax + 0x1c], bl
mov dword [eax + 0x20], ebx
mov byte [eax + 0x30], 1
mov dword [eax + 0xc], esi
cmp dword [eax + 0x2c], ebx
jne 0x495e0a
push 0x1000
lea ecx, [eax + 0x28]
call fcn.004799a2
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x44]
shr eax, 2
and eax, 1
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004960d0
movzx eax, word [ebp - 0x20]
mov dword [edi + 0x30], eax
movzx eax, word [ebp - 0x1e]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x2c]
shr eax, 2
test al, 1
je 0x495e5e
mov al, byte [ebp - 0x1a]
mov ecx, dword [ebp - 0x1c]
mov byte [edi + 0x3a], al
mov al, byte [ebp - 0x19]
mov byte [edi + 0x3b], al
movzx eax, cx
mov word [edi + 0x38], cx
mov ecx, dword [ebp - 0x44]
push eax
call fcn.004961cb
test byte [edi + 0x2c], 1
je 0x495e70
mov ecx, dword [ebp - 0x44]
lea eax, [edi + 0x3c]
push eax
call fcn.004961aa
mov eax, dword [edi + 0x2c]
shr eax, 1
test al, 1
je 0x495e85
mov ecx, dword [ebp - 0x44]
lea eax, [edi + 0x54]
push eax
call fcn.004961aa
push dword [edi + 0x24]
mov ecx, edi
call fcn.00488901
mov dword [ebp - 0x48], ebx
cmp dword [edi + 0x24], ebx
jbe 0x495ef3
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x44]
push 8
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004960d0
mov ax, word [ebp - 0x1c]
mov ecx, esi
mov edi, dword [ebp - 0x20]
mov word [ebp - 0x6c], ax
mov al, byte [ebp - 0x1a]
mov byte [ebp - 0x6a], al
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x69], al
movzx eax, byte [ebx + 0x3a]
push eax
call fcn.004961cb
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], edx
mov eax, dword [ebp - 0x48]
inc dword [ebx + 4]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, dword [ebx + 0x24]
jb 0x495e9d
mov esi, dword [ebp - 0x58]
xor ebx, ebx
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
sub eax, dword [ecx + 8]
cdq
add eax, dword [ecx + 0x20]
adc edx, ebx
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
sub eax, dword [ebp - 0x5c]
sbb edx, dword [ebp - 0x4c]
cmp eax, dword [edi + 0x70]
jne 0x495f16
cmp edx, ebx
je 0x495f5d
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x70]
push ebx
push ebx
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x60]
add eax, dword [ecx]
mov ecx, dword [edi + 0x78]
mov dword [ebp - 0x60], eax
mov eax, ebx
adc eax, dword [edi + 0x1c]
push eax
push dword [ebp - 0x60]
push ecx
call dword [edx + 0x10]
test eax, eax
jne 0x496001
mov eax, dword [edi + 0x6c]
sub eax, dword [edi + 0x70]
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
call fcn.0047f754
mov eax, dword [ebp - 0x54]
mov edi, dword [edi + 0x28]
add eax, 0xc
mov ecx, eax
mov dword [ebp - 0x60], eax
call fcn.00495663
push edi
mov edi, dword [ebp - 0x60]
mov ecx, edi
call fcn.004956d7
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x28], ebx
jbe 0x496003
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.004960d0
mov ecx, edi
call fcn.00495410
mov ecx, dword [ebp - 0x20]
mov edi, eax
push edi
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
movzx ecx, word [ebp - 0x18]
mov dword [edi + 0x18], ecx
movzx edx, word [ebp - 0x16]
movzx ecx, word [ebp - 0x14]
shl edx, 0x10
or edx, ecx
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0x14], edx
mov ax, word [ebp - 0x12]
mov word [edi + 0x1e], ax
call fcn.00496117
mov eax, dword [ebp - 0x54]
mov ecx, edi
push dword [eax + 4]
call fcn.0047723d
mov ecx, dword [ebp - 0x54]
cmp eax, dword [ecx + 4]
jge 0x495ff7
mov eax, dword [ebp - 0x4c]
lea edi, [ecx + 0xc]
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [ecx + 0x28]
jb 0x495f86
jmp 0x496003
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x33], 1
xor eax, eax
inc eax
mov ebx, eax
mov byte [ebp - 4], 8
test esi, esi
je 0x496011
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
push dword [ebp - 0x50]
call fcn.004e5ff7
pop ecx
mov eax, ebx
call fcn.004e6a01
ret 8