Function at 0x419140
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe540
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5365f0]
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
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x38], ax
push ebx
mov eax, 0x517384
lea esi, [ebp - 0x38]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.004027c0
mov dword [ebp - 4], ebx
mov ecx, 1
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x74], 3
jmp 0x4191b4
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
lea esi, [ebp - 0x70]
mov dword [eax], ecx
call fcn.00418f70
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
mov edi, 8
cmp ecx, esi
je 0x419232
cmp dword [ebp - 0x24], edi
jb 0x4191e4
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
cmp dword [esi + 0x14], edi
jae 0x419210
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x38]
push esi
push edx
call fcn.004d5b50
add esp, 0xc
jmp 0x419217
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x24], edx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x5c], edi
jb 0x419246
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.004d5559
add esp, 4
mov eax, dword [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], dx
cmp dword [ebp - 0x24], edi
jae 0x419261
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4192c7
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + eax*4 - 0x1c]
lea esi, [ebp - 0x54]
call fcn.00418f70
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], edi
jb 0x419286
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x419291
lea ecx, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x40], edi
jb 0x4192ad
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov eax, 1
add dword [ebp - 0x78], eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x54], dx
jmp 0x4192cc
mov eax, 1
add dword [ebp - 0x80], 4
add dword [ebp - 0x7c], eax
sub dword [ebp - 0x74], eax
jne 0x4191b1
call fcn.00419040
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
cmp edi, eax
jle 0x41933d
jmp 0x4192f0
mov ecx, edi
lea esi, [ebp - 0x54]
call fcn.00418f70
mov byte [ebp - 4], 3
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x41930a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x40], esi
jb 0x419325
mov eax, dword [ebp - 0x54]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
dec edi
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x54], cx
cmp edi, dword [ebp - 0x74]
jg 0x4192f0
jmp 0x419342
mov esi, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], esi
jb 0x41935a
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
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.004d5564
mov esp, ebp
pop ebp
ret