Function at 0x486c30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ffb90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x486d01
cmp word [esi], 0
je 0x486d01
push str..rar
push esi
call fcn.004e4707
add esp, 8
test eax, eax
jne 0x486dce
mov eax, dword [edi]
sub eax, 0x10
call fcn.004048c0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, 1
mov dword [esp + 0x20], 0
cmp dword [esi - 4], ebx
jle 0x486cc1
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401410
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e4d4d
add esp, 8
test eax, eax
jl 0x486dc4
cmp eax, dword [esi - 8]
jg 0x486dc4
xor edx, edx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], dx
call ebp
mov esi, eax
test esi, esi
jne 0x486d17
lea ecx, [esp + 0x14]
call fcn.004016f0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486d20
sub eax, edx
sar eax, 1
cmp eax, 6
jb 0x486cf8
push 5
push str..part
push esi
call fcn.004e4ca7
add esp, 0xc
test eax, eax
jne 0x486cf8
cmp word [esi + 0xa], 0
lea eax, [esi + 0xa]
je 0x486d7a
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x486cf8
cmp cx, 0x39
ja 0x486cf8
xor ecx, ecx
cmp word [eax + 2], cx
sete cl
add eax, 2
add ecx, 0x30
mov word [eax - 2], cx
cmp word [eax], 0
jne 0x486d52
lea edx, [esp + 0x14]
push edx
mov edx, str..rar
call fcn.0041d510
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486cf8
lea eax, [esp + 0x14]
call fcn.00404930
lea ecx, [esp + 0x14]
call fcn.004016f0
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00401540
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
cmp ax, 0x72
je 0x487021
cmp ax, 0x52
je 0x487021
cmp ax, 0x7a
je 0x486f70
cmp ax, 0x5a
je 0x486f70
push str..001
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f57
mov ecx, ebx
movzx eax, word [ecx]
test ax, ax
je 0x486e40
lea ecx, [ecx]
cmp ax, 0x30
jb 0x486d01
cmp ax, 0x39
ja 0x486d01
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x486e20
mov eax, dword [edi]
sub eax, 0x10
call fcn.004048c0
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x14]
mov dword [esp + 0x20], 3
call fcn.0041e6b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e4d4d
add esp, 8
test eax, eax
jl 0x486dc4
cmp eax, dword [esi - 8]
jg 0x486dc4
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call ebp
mov esi, eax
test esi, esi
je 0x486cf8
push str..zip
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f23
push 0x510c08
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f23
push str..tar
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f23
push str..bz2
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f23
push 0x51503c
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f23
push str..wim
push esi
call fcn.004e4707
add esp, 8
test eax, eax
je 0x486f23
push 0x517258
push esi
call fcn.004e4707
add esp, 8
test eax, eax
jne 0x486cf8
lea edx, [esp + 0x14]
push edx
mov edx, str..001
call fcn.0041d510
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486cf8
lea eax, [esp + 0x14]
call fcn.00404930
lea ecx, [esp + 0x14]
call fcn.004016f0
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486f75
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x486d01
movzx eax, word [esi + 4]
lea ecx, [esi + 4]
test ax, ax
je 0x486fc0
lea esp, [esp]
cmp ax, 0x30
jb 0x486d01
cmp ax, 0x39
ja 0x486d01
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x486fa0
mov eax, dword [edi]
sub eax, 0x10
call fcn.004048c0
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, 1
mov dword [esp + 0x20], 2
cmp dword [eax - 4], ebx
jle 0x486ff5
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00401410
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea ecx, [eax + ecx*2 - 4]
mov edx, 0x69
mov word [ecx], dx
mov edx, 0x70
push eax
mov word [ecx + 2], dx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x486d9c
jmp 0x486cf8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487026
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x486d01
movzx eax, word [esi + 4]
lea ecx, [esi + 4]
test ax, ax
je 0x487070
lea ebx, [ebx]
cmp ax, 0x30
jb 0x486d01
cmp ax, 0x39
ja 0x486d01
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x487050
mov eax, dword [edi]
sub eax, 0x10
call fcn.004048c0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, 1
mov dword [esp + 0x20], ebx
cmp dword [esi - 4], ebx
jle 0x4870a1
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401410
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
mov edx, 0x61
mov ecx, 0x72
push esi
mov word [esi + eax*2 - 4], dx
mov word [esi + eax*2 - 2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4870f0
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x486d01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x486d01
lea eax, [esp + 0x14]
call fcn.00404930
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48711d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret