Function at 0x41d850
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f71cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
mov eax, dword [0x531d28]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x284], eax
mov dword [esp + 0x2c], edi
call fcn.004e5159
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.004e5159
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.004e5159
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.0047b390
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 4
call fcn.0041cad0
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 0x41d93b
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 0x41d960
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 0x41d9d6
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 0x41d98c
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 0x41d9b1
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 0x41d9cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41dbf8
lea eax, [ecx - 1]
test eax, eax
jl 0x41df46
cmp eax, ecx
jg 0x41df46
cmp word [edx + eax*2], 0x5c
jne 0x41da00
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.0041cad0
jmp 0x41da4e
push 0x505b6c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0041cc60
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 5
call fcn.0041cad0
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 0x41da4e
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.0041c460
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x298], 6
call fcn.0047ac20
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41db1e
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 0x41daaf
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 0x41dad4
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 0x41daf9
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 0x41db14
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, 1
jmp 0x41dbf8
push ebp
push 0x505b64
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041cc60
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 0x41db63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
jne 0x41dc1e
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 0x41db90
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 0x41dbb5
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 0x41dbda
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 0x41dbf5
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.004d40be
add esp, 0x288
ret 4
mov eax, dword [edi + 0xf0]
test eax, eax
jne 0x41dddc
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.0041cfa0
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.0041cc60
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x298], 8
call fcn.0041cad0
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 0x41dca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
push 0x505b60
push eax
call fcn.004d602a
add esp, 8
test eax, eax
je 0x41dd98
mov ecx, dword [esp + 0x2c]
push 0x505b58
push ecx
call fcn.004d602a
add esp, 8
test eax, eax
je 0x41dd98
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0047c140
add esp, 0xc
test byte [esp + 0x38], 0x10
mov byte [esp + 0x294], bl
je 0x41dd0b
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.0041d850
jmp 0x41dd72
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.0041c460
add eax, 0x10
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x29c], 0xa
call fcn.0047ac20
mov eax, dword [esp + 0x30]
add esp, 8
push 0x80
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.00487690
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 0x41dd72
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 0x41dd98
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 0x41de05
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 0x41ddca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xf0]
test ecx, ecx
je 0x41dc40
lea ecx, [esp + 0x1c]
call fcn.004016e0
lea ecx, [esp + 0x14]
call fcn.004016e0
lea ecx, [esp + 0x18]
call fcn.004016e0
lea ecx, [esp + 0x20]
call fcn.004016e0
jmp 0x41dbf5
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x294], 6
call fcn.004016e0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41de90
jge 0x41de34
push 0x80070057
call fcn.00401110
mov dx, word [ecx]
cmp dx, 0x65
je 0x41de51
test eax, eax
jge 0x41de4b
push 0x80070057
call fcn.00401110
cmp dx, 0x45
jne 0x41de90
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0047c140
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push eax
mov byte [esp + 0x298], 0xb
call fcn.0041cbe0
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 6
call fcn.004016e0
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
push eax
call fcn.0041c460
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x29c], 0xc
call fcn.0047ac20
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 8
push edx
call esi
test eax, eax
jne 0x41df0f
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.004016e0
lea ecx, [esp + 0x1c]
call fcn.004016e0
lea ecx, [esp + 0x14]
call fcn.004016e0
lea ecx, [esp + 0x18]
call fcn.004016e0
lea ecx, [esp + 0x20]
call fcn.004016e0
mov eax, esi
jmp 0x41dbf7
lea ecx, [esp + 0x24]
call fcn.004016e0
lea ecx, [esp + 0x1c]
call fcn.004016e0
lea ecx, [esp + 0x14]
call fcn.004016e0
lea ecx, [esp + 0x18]
call fcn.004016e0
lea ecx, [esp + 0x20]
call fcn.004016e0
mov eax, 1
jmp 0x41dbf7
push 0x80070057
call fcn.00401110
int3