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

Disassembly:
push 0xa0
mov eax, 0x4ccffb
call fcn.0044c2a5
mov eax, ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov ecx, edi
mov dword [ebp - 0x50], edi
mov dword [eax + 0x30], ebx
call fcn.00470120
mov ecx, dword [edi + 0x78]
lea edx, [edi + 0x18]
push edx
push ebx
push ebx
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x470aa0
mov eax, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], 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.00465ea3
add esp, 0xc
test eax, eax
jne 0x470a85
push 8
lea eax, [ebp - 0x40]
push str.MSCF
push eax
call fcn.004a5168
add esp, 0xc
test eax, eax
jne 0x4706f1
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x20]
call fcn.00470af8
test al, al
je 0x4706f1
push 0x28
call fcn.0044bbf7
mov esi, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], esi
pop ecx
test esi, esi
je 0x47065d
mov dword [esi + 4], ebx
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], ebx
mov eax, dword [esi]
push esi
mov dword [ebp - 0x60], esi
call dword [eax + 4]
jmp 0x470662
mov esi, ebx
mov dword [ebp - 0x60], ebx
push dword [edi + 0x78]
lea ecx, [esi + 8]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x74], esi
call fcn.00457466
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.0044beb2
push 0x20
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x54], eax
push ecx
push eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0x8000
call fcn.004a4500
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x44]
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 0x470a85
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
add eax, 0x20
mov ecx, dword [ebp - 0x70]
add eax, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ecx
lea ecx, [edx + 0x20]
mov dword [ebp - 0x44], eax
jmp 0x470856
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x470703
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x470a82
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.00470530
push eax
lea ecx, [ebp - 0x68]
call fcn.0045969a
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x40]
push 0x20
push ecx
push eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xac], eax
call fcn.004a4500
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 0x4707a6
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.00470af8
test al, al
jne 0x4707ba
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xac]
call fcn.004703ba
test eax, eax
je 0x47077e
jmp 0x470a85
mov ecx, dword [ebp - 0x84]
mov edx, ebx
add ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x80]
adc eax, edx
mov dword [ebp - 0x44], edx
push 0x28
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
call fcn.0044bbf7
mov esi, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], esi
pop ecx
test esi, esi
je 0x4707f5
mov dword [esi + 4], ebx
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], ebx
jmp 0x4707fa
mov esi, ebx
mov dword [ebp - 0x58], esi
push dword [edi + 0x78]
lea ecx, [esi + 8]
mov dword [ebp - 0x60], esi
call fcn.00457466
test esi, esi
je 0x470812
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0xa4]
mov edx, eax
mov ecx, dword [ebp - 0x5c]
sub edx, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x4c], edx
mov edx, dword [edi + 0x6c]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x14], ebx
cmp edx, dword [ebp - 0x4c]
ja 0x470843
mov dword [esi + 0x10], ebx
mov eax, dword [edi + 0x6c]
add eax, ecx
jmp 0x470849
sub edx, dword [ebp - 0x4c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x54]
add ecx, 0x20
add eax, edx
add ecx, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
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 - 0x4c]
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 0x470890
push 0x1000
lea ecx, [eax + 0x28]
call fcn.0045969a
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x48]
shr eax, 2
and eax, 1
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00470b54
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 0x4708e4
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 - 0x48]
push eax
call fcn.00470c51
test byte [edi + 0x2c], 1
je 0x4708f6
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x3c]
push eax
call fcn.00470c30
mov eax, dword [edi + 0x2c]
shr eax, 1
test al, 1
je 0x47090b
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x54]
push eax
call fcn.00470c30
push dword [edi + 0x24]
mov ecx, edi
call fcn.004689e3
mov dword [ebp - 0x4c], ebx
cmp dword [edi + 0x24], ebx
jbe 0x470979
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
push 8
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00470b54
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.00470c51
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 - 0x4c]
inc dword [ebx + 4]
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebx + 0x24]
jb 0x470923
mov esi, dword [ebp - 0x58]
xor ebx, ebx
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
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 - 0x44]
cmp eax, dword [edi + 0x70]
jne 0x47099c
cmp edx, ebx
je 0x4709e1
mov eax, dword [edi + 0x70]
add eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x78]
push ebx
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x1c]
mov edx, dword [ecx]
adc eax, ebx
push ebx
push eax
push dword [ebp - 0x44]
push ecx
call dword [edx + 0x10]
test eax, eax
jne 0x470a85
mov eax, dword [edi + 0x6c]
mov ecx, dword [ebp - 0x60]
sub eax, dword [edi + 0x70]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], ebx
mov byte [ecx + 0x20], bl
mov ecx, dword [ebp - 0x48]
call fcn.00460f6f
mov eax, dword [ebp - 0x50]
mov edi, dword [edi + 0x28]
add eax, 0xc
mov ecx, eax
mov dword [ebp - 0x44], eax
call fcn.004700c4
push edi
mov edi, dword [ebp - 0x44]
mov ecx, edi
call fcn.00470138
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], ebx
cmp dword [eax + 0x28], ebx
jbe 0x470a87
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.00470b54
mov ecx, edi
call fcn.0046fe6d
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 - 0x48]
mov dword [edi + 0x14], edx
mov ax, word [ebp - 0x12]
mov word [edi + 0x1e], ax
call fcn.00470b9d
mov eax, dword [ebp - 0x50]
mov ecx, edi
push dword [eax + 4]
call fcn.0045ee1e
mov ecx, dword [ebp - 0x50]
cmp eax, dword [ecx + 4]
jge 0x470a7b
mov eax, dword [ebp - 0x44]
lea edi, [ecx + 0xc]
inc eax
mov dword [ebp - 0x44], eax
cmp eax, dword [ecx + 0x28]
jb 0x470a0a
jmp 0x470a87
mov eax, dword [ebp - 0x48]
mov byte [eax + 0x33], 1
xor eax, eax
inc eax
mov ebx, eax
mov byte [ebp - 4], 8
test esi, esi
je 0x470a95
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
push dword [ebp - 0x54]
call fcn.0044b746
pop ecx
mov eax, ebx
call fcn.0044c24f
ret 8