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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eb98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x558384]
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 0x4a1ede
mov ecx, dword [esi + 0x2c]
sub ecx, edx
neg ecx
sbb ecx, ecx
test ecx, ecx
js 0x4a1efc
mov eax, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x4a1ecb
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a1ecb
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 0x4a203e
mov edi, dword [esi + 0x24]
xor ecx, ecx
test edi, edi
je 0x4a1efc
mov eax, dword [esi + 0x20]
lea ebx, [ebx]
cmp dword [eax], edx
je 0x4a1eaa
inc ecx
add eax, 4
cmp ecx, edi
jb 0x4a1ef0
push edx
lea ecx, [esi + 4]
push 0
call fcn.004a1640
mov ebx, eax
test ebx, ebx
jns 0x4a1f17
mov edi, 0x80070057
jmp 0x4a203e
mov cl, byte [esi + 0x60]
mov eax, dword [esi + 0x14]
test cl, cl
je 0x4a1f27
mov edi, dword [eax + ebx*8 + 4]
jmp 0x4a1f2a
mov edi, dword [eax + ebx*8]
test cl, cl
jne 0x4a1f34
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 0x4a1f50
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x515528
push ecx
call dword [eax]
cmp dword [ebp - 0x14], 0
je 0x4a2039
cmp byte [esi + 0x60], 0
mov edx, dword [ebp + 0xc]
je 0x4a1f7f
mov eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edx + 8]
mov edi, dword [edi + eax]
jmp 0x4a1f84
mov ecx, 1
mov byte [ebp + 0xf], 0
cmp ecx, 1
jne 0x4a2068
mov dword [ebp - 0x18], 0
mov ecx, dword [edx]
lea edx, [ebp - 0x18]
push edx
push 0x5177e4
push ecx
mov eax, dword [ecx]
mov byte [ebp - 4], 5
call dword [eax]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a2021
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.004a1e60
mov edi, eax
test edi, edi
jne 0x4a1fe5
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 0x4a2009
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4a1ff6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4a203e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a203e
mov byte [ebp + 0xf], 1
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4a201e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4a202f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0xf], 0
mov byte [ebp - 4], 0
jne 0x4a206c
mov edi, 0x80004001
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0x11
test ecx, ecx
je 0x4a2052
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 0x4a2039
cmp dword [esi + 0x7c], ebx
ja 0x4a207e
lea ecx, [esi + 0x78]
call fcn.004a05e0
cmp dword [esi + 0x7c], ebx
jbe 0x4a2071
mov eax, dword [esi + 0x78]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 8], 0
jne 0x4a2039
cmp dword [edi + 4], 0
jne 0x4a2039
push 0x18
call fcn.004bcee7
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
je 0x4a20c7
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 0x4a20c9
xor esi, esi
push esi
lea ecx, [edi + 8]
call fcn.004a0140
mov dword [edi + 4], esi
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4a20e2
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4a20ef
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.004a0140
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [eax], ecx
jmp 0x4a203e