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

Disassembly:
push 0xa8
mov eax, 0x5fa605
call fcn.0055ef38
mov eax, ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
mov ecx, edi
mov dword [ebp - 0x4c], edi
mov dword [eax + 0x30], ebx
call fcn.0058a921
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 - 0x74], edx
call dword [eax + 0x10]
test eax, eax
jne 0x58b2b3
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
xorps xmm0, xmm0
mov dword [ebp - 4], ebx
mov esi, ebx
movlpd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x54], esi
mov ecx, dword [edi + 0x78]
lea edx, [ebp - 0x40]
push 0x20
mov byte [ebp - 4], 1
call fcn.0057b39b
test eax, eax
jne 0x58b298
push 8
lea eax, [ebp - 0x40]
push str.MSCF
push eax
call fcn.005ca326
add esp, 0xc
test eax, eax
jne 0x58aed1
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x20]
call fcn.0058b306
test al, al
je 0x58aed1
push 0x28
call fcn.0055e6ea
mov esi, eax
mov dword [ebp - 0x48], esi
pop ecx
test esi, esi
je 0x58ae2b
mov dword [esi + 4], ebx
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], ebx
jmp 0x58ae2d
mov esi, ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.005658da
push dword [edi + 0x78]
lea ecx, [esi + 8]
call fcn.005658da
lea eax, [edi + 0x6c]
mov dword [ebp - 0x48], eax
lea ecx, [esi + 0x10]
mov eax, dword [eax]
sub eax, 8
mov dword [ebp - 0x68], ecx
mov dword [ecx], eax
lea eax, [esi + 0x18]
mov dword [ebp - 0x6c], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x20]
mov dword [ecx + 4], ebx
lea ecx, [ebp - 0x64]
push 0x8000
mov dword [ebp - 0x70], eax
mov byte [eax], bl
call fcn.00565b87
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push 0x20
push eax
push esi
call fcn.005c93b0
add esp, 0xc
lea ecx, [esi + 0x20]
mov esi, dword [ebp - 0x54]
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [esi]
push 0x7fe0
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x58b298
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 8], edx
lea esi, [edx + 0x20]
add edx, 0x20
add eax, edx
mov dword [ecx], esi
mov edx, dword [ebp - 0x7c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
jmp 0x58b068
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x58aee3
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x58b295
mov eax, dword [edi + 0x78]
push 0x20
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0xb4]
push 0x8000
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa8], str.MSCF
mov dword [ebp - 0xa4], 8
call fcn.0058ad0f
push eax
lea ecx, [ebp - 0x64]
call fcn.00565b87
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
push 0x20
push ecx
push eax
mov dword [ebp - 0xb4], eax
call fcn.005c93b0
mov eax, dword [edi + 0x18]
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0xac], 0x20
mov dword [ebp - 0xb0], 1
jmp 0x58af89
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb4]
add eax, ecx
mov dword [ebp - 0x58], ecx
push eax
lea ecx, [edi + 0x20]
call fcn.0058b306
test al, al
jne 0x58af9d
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0xb4]
call fcn.0058ab99
test eax, eax
je 0x58af61
jmp 0x58b298
mov ecx, dword [ebp - 0x8c]
mov edx, ebx
add ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x88]
adc eax, edx
mov dword [ebp - 0x5c], edx
push 0x28
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
call fcn.0055e6ea
mov esi, eax
mov dword [ebp - 0x48], esi
pop ecx
test esi, esi
je 0x58afd8
mov dword [esi + 4], ebx
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], ebx
jmp 0x58afda
mov esi, ebx
push dword [edi + 0x78]
lea ecx, [esi + 8]
call fcn.005658da
push esi
lea ecx, [ebp - 0x54]
call fcn.005658da
mov eax, dword [ebp - 0xac]
lea ecx, [edi + 0x6c]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
sub eax, edx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ecx]
cmp ecx, eax
ja 0x58b030
lea eax, [esi + 0x10]
mov dword [ebp - 0x68], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x18]
mov dword [ebp - 0x6c], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x20]
mov dword [ebp - 0x70], eax
mov byte [eax], bl
mov eax, dword [edi + 0x6c]
add eax, edx
mov dword [ebp - 0x50], eax
jmp 0x58b050
sub ecx, eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x68], eax
mov dword [eax], ecx
mov dword [eax + 4], ebx
lea eax, [esi + 0x18]
mov dword [ebp - 0x6c], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x20]
mov dword [ebp - 0x70], eax
mov byte [eax], bl
mov ecx, dword [ebp - 0x44]
lea eax, [edx + 0x20]
mov esi, dword [ebp - 0x64]
add eax, esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x50]
add eax, esi
mov dword [ecx + 8], esi
mov dword [ecx + 4], eax
mov esi, dword [ebp - 0x54]
mov dword [ecx + 0x20], ebx
mov byte [ecx + 0x1c], bl
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x18], 0x8000
cmp dword [ecx + 0x2c], 0
mov byte [ecx + 0x30], 1
mov dword [ecx + 0xc], esi
jne 0x58b09b
push 0x1000
add ecx, 0x28
call fcn.00565b87
mov ecx, dword [ebp - 0x44]
mov eax, dword [edi + 0x2c]
shr eax, 2
and eax, 1
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0058b362
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 0x58b0ec
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.0058b45d
test byte [edi + 0x2c], 1
je 0x58b0fe
mov ecx, dword [ebp - 0x44]
lea eax, [edi + 0x3c]
push eax
call fcn.0058b43c
mov eax, dword [edi + 0x2c]
shr eax, 1
test al, 1
je 0x58b113
mov ecx, dword [ebp - 0x44]
lea eax, [edi + 0x54]
push eax
call fcn.0058b43c
push dword [edi + 0x24]
mov ecx, edi
call fcn.00583235
mov dword [ebp - 0x50], ebx
cmp dword [edi + 0x24], ebx
jbe 0x58b181
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x44]
push 8
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0058b362
mov ax, word [ebp - 0x1c]
mov ecx, ebx
mov edi, dword [ebp - 0x20]
mov word [ebp - 0x78], ax
mov al, byte [ebp - 0x1a]
mov byte [ebp - 0x76], al
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x75], al
movzx eax, byte [esi + 0x3a]
push eax
call fcn.0058b45d
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [ebp - 0x78]
mov dword [edx + ecx*8], edi
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [ebp - 0x50]
inc dword [esi + 4]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [esi + 0x24]
jb 0x58b12b
mov esi, dword [ebp - 0x54]
xor ebx, ebx
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx]
sub eax, dword [ecx + 8]
cdq
add eax, dword [ecx + 0x20]
adc edx, ebx
sub eax, dword [ebp - 0x58]
sbb edx, dword [ebp - 0x5c]
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
cmp eax, dword [edi + 0x70]
jne 0x58b1aa
cmp edx, ebx
je 0x58b1f4
mov eax, dword [ebp - 0x74]
mov edx, dword [edi + 0x78]
push ebx
push ebx
mov ecx, dword [eax]
add ecx, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov edi, dword [edx]
adc eax, ebx
push eax
push ecx
push edx
call dword [edi + 0x10]
test eax, eax
jne 0x58b298
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
mov eax, dword [eax]
sub eax, dword [edi + 0x70]
mov dword [ecx], eax
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 4], ebx
mov ecx, dword [ebp - 0x44]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x70]
mov byte [eax], bl
call fcn.0057530d
mov eax, dword [ebp - 0x4c]
mov edi, dword [edi + 0x28]
add eax, 0xc
mov ecx, eax
mov dword [ebp - 0x74], eax
call fcn.0058a8c5
push edi
mov edi, dword [ebp - 0x74]
mov ecx, edi
call fcn.0058a939
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x28], ebx
jbe 0x58b29a
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.0058b362
mov ecx, edi
call fcn.0058a67c
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.0058b388
mov eax, dword [ebp - 0x4c]
mov ecx, edi
push dword [eax + 4]
call fcn.0056d083
mov ecx, dword [ebp - 0x4c]
cmp eax, dword [ecx + 4]
jge 0x58b28e
mov eax, dword [ebp - 0x48]
lea edi, [ecx + 0xc]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, dword [ecx + 0x28]
jb 0x58b21d
jmp 0x58b29a
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 0x58b2a8
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
push dword [ebp - 0x64]
call fcn.0055e6e5
pop ecx
mov eax, ebx
call fcn.0055eee2
ret 8