Function at 0x41c640
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f10ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
mov eax, dword [0x52bd18]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x284], eax
mov dword [esp + 0x2c], edi
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x290], 0
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x290], 1
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x298]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 2
call fcn.00401fd0
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
mov bl, 3
push edx
mov byte [esp + 0x29c], bl
call fcn.00479410
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 4
call fcn.0041b4b0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x290], bl
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c72b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x290], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x41c7c6
lea eax, [edx - 0x10]
mov byte [esp + 0x290], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c77c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x290], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c7a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x290], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41c7bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41c9e8
lea eax, [ecx - 1]
test eax, eax
jl 0x41cd36
cmp eax, ecx
jg 0x41cd36
cmp word [edx + eax*2], 0x5c
jne 0x41c7f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.0041b4b0
jmp 0x41c83e
push 0x4ffc6c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0041b770
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 5
call fcn.0041b4b0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x290], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff0
push esi
call fcn.0041afd0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x298], 6
call fcn.00478ca0
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c90e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x290], 2
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c89f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x290], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c8c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x290], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c8e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x290], ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41c904
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, 1
jmp 0x41c9e8
push ebp
push 0x4ffc64
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041b770
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c953
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
jne 0x41ca0e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x294], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x294], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x294], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x294], ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41c9e5
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x288]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x27c]
pop ebx
call fcn.004ce183
add esp, 0x288
ret 4
mov eax, dword [edi + 0x2fc]
test eax, eax
jne 0x41cbcc
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, 9
lea ebx, [ebx]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
call fcn.0041ba10
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x2a0], 7
call fcn.0041b770
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x298], 8
call fcn.0041b4b0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x294], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
push 0x4ffc60
push eax
call fcn.004d00ea
add esp, 8
test eax, eax
je 0x41cb88
mov ecx, dword [esp + 0x2c]
push 0x4ffc58
push ecx
call fcn.004d00ea
add esp, 8
test eax, eax
je 0x41cb88
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0047a790
add esp, 0xc
test byte [esp + 0x38], 0x10
mov byte [esp + 0x294], bl
je 0x41cafb
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.0041c640
jmp 0x41cb62
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.0041afd0
add eax, 0x10
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x29c], 0xa
call fcn.00478ca0
mov eax, dword [esp + 0x30]
add esp, 8
push 0x80
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.004857a0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x294], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cb62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x294], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x38]
push eax
push ebp
call esi
test eax, eax
je 0x41cbf5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x294], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x2fc]
test ecx, ecx
je 0x41ca30
lea ecx, [esp + 0x1c]
call fcn.00401580
lea ecx, [esp + 0x14]
call fcn.00401580
lea ecx, [esp + 0x18]
call fcn.00401580
lea ecx, [esp + 0x20]
call fcn.00401580
jmp 0x41c9e5
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x294], 6
call fcn.00401580
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41cc80
jge 0x41cc24
push 0x80070057
call fcn.00401110
mov dx, word [ecx]
cmp dx, 0x65
je 0x41cc41
test eax, eax
jge 0x41cc3b
push 0x80070057
call fcn.00401110
cmp dx, 0x45
jne 0x41cc80
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0047a790
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push eax
mov byte [esp + 0x298], 0xb
call fcn.0041aeb0
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 6
call fcn.00401580
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
push eax
call fcn.0041afd0
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x29c], 0xc
call fcn.00478ca0
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 8
push edx
call esi
test eax, eax
jne 0x41ccff
mov eax, dword [esp + 0x24]
push 0x80
push eax
call edi
mov ecx, dword [esp + 0x24]
push ecx
call esi
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00401580
lea ecx, [esp + 0x1c]
call fcn.00401580
lea ecx, [esp + 0x14]
call fcn.00401580
lea ecx, [esp + 0x18]
call fcn.00401580
lea ecx, [esp + 0x20]
call fcn.00401580
mov eax, esi
jmp 0x41c9e7
lea ecx, [esp + 0x24]
call fcn.00401580
lea ecx, [esp + 0x1c]
call fcn.00401580
lea ecx, [esp + 0x14]
call fcn.00401580
lea ecx, [esp + 0x18]
call fcn.00401580
lea ecx, [esp + 0x20]
call fcn.00401580
mov eax, 1
jmp 0x41c9e7
push 0x80070057
call fcn.00401110
int3