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

Disassembly:
mov eax, 0x100cbd49
call fcn.100bd27c
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
push edi
lea ecx, [ebp + 0xc]
lea eax, [esi + 0x1d8]
push eax
call fcn.100470b1
lea eax, [esi + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.1004a70c
and dword [esp + 0x2c], 0
xor edi, edi
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x1004b025
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi*4]
add ecx, 0xc
cmp dword [ecx + 4], 0
jne 0x1004b01c
push dword [0x100ec178]
call fcn.10001f7c
mov edx, dword [esp + 0x1c]
inc edi
cmp edi, edx
jb 0x1004affd
test edx, edx
jne 0x1004b05a
lea ecx, [esp + 0x18]
call fcn.1004ac1a
mov edx, dword [esi + 0x18]
cmp edx, 0xffffffff
push 5
pop ecx
cmove edx, ecx
mov ecx, dword [str.LZMA2]
test edx, edx
cmove ecx, dword [str.Copy]
push ecx
lea ecx, [eax + 0xc]
call fcn.10001f7c
mov edx, dword [esp + 0x1c]
mov byte [ebp + 0x18], 1
cmp dword [esi + 0x48], 0
je 0x1004b093
xor edx, edx
cmp dword [ebp + 0x10], edx
jbe 0x1004b07c
xor ecx, ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
add ecx, 0xc
inc dword [eax + 8]
inc dword [eax]
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x1004b069
lea eax, [esi + 0x38]
push eax
push 0
lea ecx, [esp + 0x20]
call fcn.1004ae08
mov edx, dword [esp + 0x1c]
mov byte [ebp + 0x19], 1
xor al, al
xor ecx, ecx
mov byte [esp + 0x38], al
mov dword [esp + 0x14], ecx
test edx, edx
je 0x1004b1b5
lea edx, [esi + 0x18]
mov eax, dword [esp + 0x18]
push dword [esp + 0x3c]
mov edi, dword [eax + ecx*4]
mov ecx, edx
push edi
mov dword [esp + 0x18], edi
call fcn.10045774
mov ecx, ebp
call fcn.1004abed
mov ebx, eax
mov ecx, esi
push edi
push ebx
call fcn.1004aea4
mov edi, eax
test edi, edi
jne 0x1004b1d3
mov edx, dword [ebx + 0x10]
mov eax, edx
or eax, dword [ebx + 0x14]
je 0x1004b0ec
mov byte [esp + 0x38], 1
cmp byte [esi + 0x78], 0
jne 0x1004b19b
cmp dword [ebx + 0x14], 0
ja 0x1004b19b
jb 0x1004b10e
cmp edx, 0x40202
ja 0x1004b19b
cmp edx, 0x21
je 0x1004b150
cmp edx, 0x30101
je 0x1004b150
cmp edx, 0x30401
je 0x1004b145
cmp edx, 0x40108
je 0x1004b13e
cmp edx, 0x40202
jne 0x1004b19b
mov ecx, dword [esp + 0x10]
call fcn.1004acee
jmp 0x1004b159
mov ecx, 0x8000
jmp 0x1004b15b
mov ecx, dword [esp + 0x10]
call fcn.1004ad96
jmp 0x1004b159
mov ecx, dword [esp + 0x10]
call fcn.1004ad49
mov ecx, eax
xor eax, eax
shld eax, ecx, 7
shl ecx, 7
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
test eax, eax
ja 0x1004b183
jb 0x1004b178
cmp ecx, 0x1000000
jae 0x1004b183
and dword [esi + 0x74], 0
mov dword [esi + 0x70], 0x1000000
cmp dword [esi + 0x74], 0
ja 0x1004b18f
cmp dword [esi + 0x70], 0xffffffff
jbe 0x1004b197
or dword [esi + 0x70], 0xffffffff
and dword [esi + 0x74], 0
mov byte [esi + 0x78], 1
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x18]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x1004b0aa
mov al, byte [esp + 0x38]
cmp byte [esi + 0x78], 0
jne 0x1004b1cd
test al, al
je 0x1004b1c5
or dword [esi + 0x70], 0xffffffff
jmp 0x1004b1c9
and dword [esi + 0x70], 0
and dword [esi + 0x74], 0
mov byte [esi + 0x78], 1
xor edi, edi
lea ecx, [esp + 0x18]
call fcn.10040f7c
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 8