Function at 0x49ad50
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a331e
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4e24e0]
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
cmp dword [0x4e9898], 0
je 0x49adcd
test ecx, ecx
je 0x49adcd
lea eax, [ebp - 0xe4]
push eax
call fcn.00411220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xe4]
cmp dword [eax - 0xc], 0
jne 0x49add4
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 0x49adcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x49b1b0
lea edi, [ebp - 0xe4]
call fcn.00402950
mov ecx, dword [ebp - 0xe4]
call fcn.00428160
test eax, eax
je 0x49af15
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
call eax
add eax, 0x10
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe4]
cmp dword [eax - 0xc], 0
jge 0x49ae20
or ebx, 0xffffffff
jmp 0x49ae78
push 0x4b0340
push eax
call fcn.00446ee4
add esp, 8
test eax, eax
jne 0x49ae37
or ebx, 0xffffffff
jmp 0x49ae78
sub eax, dword [ebp - 0xe4]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49ae78
push 0
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00410940
lea edi, [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.00411540
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 1
call fcn.00402430
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
call eax
add eax, 0x10
mov dword [ebp - 0xf4], eax
lea edi, [ebx + 1]
mov ecx, edi
mov edx, 0x4b0344
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 3
call fcn.00402920
mov esi, eax
cmp esi, 0xffffffff
je 0x49af27
push edi
lea ecx, [ebp - 0xe4]
sub eax, ebx
push ecx
dec eax
lea ecx, [ebp - 0xf0]
call fcn.00410940
lea edi, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.00411540
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 3
call fcn.00402430
push 0x4b0348
push 0x4b034c
mov edx, edi
push edx
call fcn.0040ebe0
mov eax, dword [ebp - 0xf4]
cmp dword [eax - 0xc], 0
jne 0x49af27
mov ecx, edi
call fcn.00402430
lea ecx, [ebp - 0xf8]
call fcn.00402430
lea ecx, [ebp - 0xe4]
call fcn.00402430
xor al, al
jmp 0x49b1b0
lea ecx, [esi + 1]
lea esi, [ebp - 0xe8]
lea edx, [ebp - 0xe4]
mov byte [ebp - 0xe9], 0
call fcn.0040d7c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xe8]
cmp dword [ecx - 0xc], 0
je 0x49af7d
push 0x4b0354
push 0x4b0358
mov edx, esi
push edx
call fcn.0040ebe0
mov eax, dword [ebp - 0xe8]
push eax
call fcn.0044ae80
add esp, 4
cmp eax, 1
sete byte [ebp - 0xe9]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.00402430
mov ecx, dword [ebp - 0xf8]
mov esi, dword [ecx - 0xc]
push 0x4b0360
xor bl, bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
lea edx, [ebp - 0xf8]
push edx
mov eax, esi
lea ecx, [ebp - 0xf0]
call fcn.00415ba0
lea edi, [ebp - 0xe4]
mov byte [ebp - 4], 6
call fcn.00411540
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 3
call fcn.00402430
mov eax, edi
push eax
call fcn.00415c70
mov eax, edi
call fcn.00415c20
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49b18d
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, eax
call fcn.00411220
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0xe8]
push ecx
mov ecx, eax
call fcn.00411220
mov ebx, 8
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xf0]
mov eax, dword [edx - 0xc]
mov ecx, dword [ecx - 0xc]
lea edx, [ebp - 0xe8]
sub eax, ecx
push edx
lea ecx, [ebp - 0x100]
call fcn.0040d7f0
lea edi, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.00411540
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], bl
call fcn.00402430
mov edx, dword [ebp - 0xe8]
lea ecx, [ebp - 0x11c]
call fcn.0048ccf0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x18], ebx
jb 0x49b09e
mov eax, dword [eax + 4]
jmp 0x49b0a1
add eax, 4
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.00411220
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xc
call fcn.00402f70
mov edx, dword [ebp - 0xe4]
push edx
call fcn.0046b6a0
add esp, 4
test eax, eax
je 0x49b0fb
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xe4]
call fcn.004734b0
test eax, eax
je 0x49b0fb
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xe8]
push eax
call fcn.0049bd40
add esp, 4
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0xe9], 0
je 0x49b16a
push 0xc8
lea edx, [ebp - 0xdc]
push 0
push edx
call fcn.0044b7d0
mov eax, dword [ebp - 0xe8]
add esp, 0xc
push 0x64
push eax
lea ecx, [ebp - 0xdc]
push 0x64
push ecx
mov dword [ebp - 0xe0], 0
call fcn.004477a4
lea edx, [ebp - 0x100]
push edx
push 0xcc
lea eax, [ebp - 0xe0]
push eax
push 0xe
mov eax, 0x4b037c
call fcn.0048d650
add esp, 0x20
lea ecx, [ebp - 0xfc]
mov bl, 1
call fcn.00402430
lea ecx, [ebp - 0xe8]
call fcn.00402430
lea ecx, [ebp - 0xf0]
call fcn.00402430
lea ecx, [ebp - 0xf4]
call fcn.00402430
lea ecx, [ebp - 0xf8]
call fcn.00402430
lea ecx, [ebp - 0xe4]
call fcn.00402430
mov al, bl
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.0044557a
mov esp, ebp
pop ebp
ret