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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b328
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
cmp byte [esi + 0x60], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
jne 0x42a29e
mov ecx, dword [esi + 0x2c]
sub ecx, edx
neg ecx
sbb ecx, ecx
test ecx, ecx
js 0x42a2bc
mov eax, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x42a28b
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42a28b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x14], 0
mov dword [eax], esi
jmp 0x42a3fe
mov edi, dword [esi + 0x24]
xor ecx, ecx
test edi, edi
je 0x42a2bc
mov eax, dword [esi + 0x20]
lea ebx, [ebx]
cmp dword [eax], edx
je 0x42a26a
inc ecx
add eax, 4
cmp ecx, edi
jb 0x42a2b0
push edx
lea ecx, [esi + 4]
push 0
call fcn.00429a00
mov ebx, eax
test ebx, ebx
jns 0x42a2d7
mov edi, 0x80070057
jmp 0x42a3fe
mov cl, byte [esi + 0x60]
mov eax, dword [esi + 0x14]
test cl, cl
je 0x42a2e7
mov edi, dword [eax + ebx*8 + 4]
jmp 0x42a2ea
mov edi, dword [eax + ebx*8]
test cl, cl
jne 0x42a2f4
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edi*4]
mov eax, dword [esi + 0x6c]
lea ecx, [edi*4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + eax]
mov dword [ebp + 0xc], eax
mov ecx, dword [eax]
test ecx, ecx
jne 0x42a310
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x5471a4
push ecx
call dword [eax]
cmp dword [ebp - 0x14], 0
je 0x42a3f9
cmp byte [esi + 0x60], 0
mov edx, dword [ebp + 0xc]
je 0x42a33f
mov eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edx + 8]
mov edi, dword [edi + eax]
jmp 0x42a344
mov ecx, 1
mov byte [ebp + 0xf], 0
cmp ecx, 1
jne 0x42a428
mov dword [ebp - 0x18], 0
mov ecx, dword [edx]
lea edx, [ebp - 0x18]
push edx
push 0x549498
push ecx
mov eax, dword [ecx]
mov byte [ebp - 4], 5
call dword [eax]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42a3e1
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.0042a220
mov edi, eax
test edi, edi
jne 0x42a3a5
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
je 0x42a3c9
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x42a3b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x42a3fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x42a3fe
mov byte [ebp + 0xf], 1
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x42a3de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x42a3ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0xf], 0
mov byte [ebp - 4], 0
jne 0x42a42c
mov edi, 0x80004001
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0x11
test ecx, ecx
je 0x42a412
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
jne 0x42a3f9
cmp dword [esi + 0x7c], ebx
ja 0x42a43e
lea ecx, [esi + 0x78]
call fcn.004289a0
cmp dword [esi + 0x7c], ebx
jbe 0x42a431
mov eax, dword [esi + 0x78]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 8], 0
jne 0x42a3f9
cmp dword [edi + 4], 0
jne 0x42a3f9
push 0x18
call fcn.004ed767
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
je 0x42a487
mov dword [esi + 4], vtable.IOutStreamFinish.0
mov dword [esi + 8], 0
mov dword [esi], vtable.COutStreamCalcSize.0
mov dword [esi + 4], vtable.COutStreamCalcSize.1.0
mov dword [esi + 0xc], 0
jmp 0x42a489
xor esi, esi
push esi
lea ecx, [edi + 8]
call fcn.00428500
mov dword [edi + 4], esi
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42a4a2
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x42a4af
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], ebx
lea ecx, [ebp - 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push dword [edi + 4]
call fcn.00428500
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [eax], ecx
jmp 0x42a3fe