Function at 0x413510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fea8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x43fa8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
cmp esi, ebx
je 0x413587
push esi
lea ecx, [ebp - 0x24]
call fcn.0040ded0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
jne 0x413591
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413587
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80070057
jmp 0x413863
push 0x435354
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov dword [ebp - 0x2c], ebx
call fcn.004200a9
add esp, 0xc
test eax, eax
je 0x4135da
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x413863
mov esi, dword [ebp - 0x2c]
call fcn.0040fa20
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov edi, eax
call fcn.0040ee70
mov esi, eax
add esp, 8
mov dword [ebp - 0x28], esi
cmp esi, ebx
jge 0x413636
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041e7fa
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41362f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x413863
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0041f621
mov dword [eax], ebx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push edx
push ecx
push 1
push eax
mov dword [ebp - 0x38], eax
call fcn.0041ddce
xor edx, edx
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sete dl
push eax
mov dword [ebp - 0x34], edx
call fcn.0041f621
mov esi, eax
mov dword [esi], ebx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
push ecx
push edx
push 1
push esi
call fcn.0041ddce
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0x28
cmp ebx, eax
sete cl
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x4c], ecx
xor ecx, ecx
test eax, eax
jle 0x4136bc
lea edx, [ebx + esi - 1]
lea ecx, [ecx]
movzx ebx, byte [edx]
mov byte [ebp - 0x2d], bl
movzx ebx, byte [ecx + esi]
mov byte [edx], bl
movzx ebx, byte [ebp - 0x2d]
mov byte [ecx + esi], bl
inc ecx
dec edx
cmp ecx, eax
jl 0x4136a0
mov ebx, dword [ebp - 0x14]
sub edi, ebx
sub edi, dword [ebp - 0x18]
sub edi, 0x10
push edi
call fcn.0041f621
mov ebx, eax
mov dword [ebx], 0
mov edx, dword [ebp - 0x2c]
push edx
push edi
push 1
push ebx
call fcn.0041ddce
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
cmp edi, eax
sete cl
push edx
mov dword [ebp - 0x40], ecx
call fcn.0041e7fa
add esp, 0x18
cmp dword [ebp - 0x34], 0
je 0x413727
cmp dword [ebp - 0x4c], 0
je 0x413727
cmp dword [ebp - 0x40], 0
je 0x413727
test byte [ebp + 0x10], 1
je 0x413727
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
push esi
push edi
push ebx
call fcn.0040ed20
add esp, 0x18
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ded0
mov edx, dword [0x440ce0]
mov eax, dword [edx + 0xc]
mov ecx, 0x440ce0
mov byte [ebp - 4], 1
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x28], 0
mov al, 2
mov byte [ebp - 4], al
jl 0x4137d3
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx - 0xc], 0
je 0x413799
test byte [ebp + 0x10], al
je 0x413799
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
push edx
push eax
push ecx
call fcn.00411780
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
js 0x4137d3
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x34]
call fcn.00407810
neg eax
sbb eax, eax
and eax, 0x80004005
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x4137d3
push str..zip
push str..crx
lea ecx, [ebp - 0x24]
call fcn.00411060
mov eax, dword [ebp - 0x24]
call fcn.0040f9b0
mov dword [ebp - 0x28], eax
test eax, eax
js 0x4137d3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.004125b0
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.00412a60
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041eb09
push esi
call fcn.0041eb09
push ebx
call fcn.0041eb09
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41383a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d48e
mov esp, ebp
pop ebp
ret