Function at 0x45dd30
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x492776
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x844], eax
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x86c]
mov eax, dword [esp + 0x868]
lea edi, [ebx + ebx*2]
add edi, edi
mov ecx, dword [edi + edi + 0x4d430c]
add edi, edi
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45dff9
lea esi, [esp + 0x14]
call fcn.0045d4f0
mov dword [esp + 0x860], 0
push eax
lea ecx, [esp + 0x34]
call fcn.0048d2f0
mov byte [esp + 0x860], 2
cmp dword [esp + 0x2c], 8
jb 0x45ddd3
mov edx, dword [esp + 0x18]
push edx
call fcn.00471099
add esp, 4
mov ecx, dword [edi + 0x4d4310]
xor eax, eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.0048d1e0
lea ecx, [esp + 0x30]
call fcn.0048cdd0
mov edx, dword [edi + 0x4d430c]
push 1
push edx
mov ecx, eax
call fcn.004112e0
add esp, 8
test eax, eax
jle 0x45decd
lea ecx, [esp + 0x30]
call fcn.0048cdd0
mov ecx, dword [edi + 0x4d430c]
push 2
push ecx
mov ecx, eax
call fcn.004112e0
add esp, 8
test eax, eax
jle 0x45decd
mov ecx, dword [edi + 0x4d430c]
lea edx, [esp + 0x4c]
call fcn.00411400
lea ecx, [esp + 0x30]
lea esi, [esp + 0x4c]
call fcn.0048cdd0
mov edi, edi
mov cx, word [eax]
cmp cx, word [esi]
jne 0x45de86
test cx, cx
je 0x45de82
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x45de86
add eax, 4
add esi, 4
test cx, cx
jne 0x45de60
xor eax, eax
jmp 0x45de8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45dfc0
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45dfc0
push 0
lea ecx, [esp + 0x34]
call fcn.0048cdd0
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45dfc0
mov ebx, dword [edi + 0x4d430c]
call fcn.00411130
mov ebx, dword [edi + 0x4d430c]
call fcn.004111b0
lea ecx, [esp + 0x30]
call fcn.0048cdd0
mov edx, dword [edi + 0x4d430c]
push edx
mov ecx, eax
call fcn.00411040
add esp, 4
test al, al
jne 0x45df1c
mov ebx, dword [edi + 0x4d430c]
call fcn.00411130
mov ebx, dword [edi + 0x4d430c]
call fcn.004111b0
jmp 0x45dfe5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [edi + 0x4d430c]
call fcn.00411530
cmp eax, 6
je 0x45df5c
cmp eax, 7
je 0x45df01
cmp eax, 5
je 0x45df01
cmp eax, 0xa
je 0x45df01
push 0xc8
call esi
mov ecx, dword [esp + 0x10]
push 0
call fcn.004897b0
test al, al
je 0x45df22
jmp 0x45dfe5
mov ecx, dword [edi + 0x4d430c]
lea edx, [esp + 0x4c]
call fcn.00411400
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.0048d040
test al, al
je 0x45dfae
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45dfae
push 0
lea ecx, [esp + 0x34]
call fcn.0048cdb0
push eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [edi + 0x4d430c]
call fcn.00411130
mov ebx, dword [esp + 0x86c]
mov esi, dword [esp + 0x10]
push 0
mov ecx, esi
call fcn.004897b0
test al, al
jne 0x45dfe5
lea ecx, [esp + 0x30]
call fcn.0048cdd0
mov ecx, ebx
mov edi, eax
mov ebx, esi
call fcn.0045e170
mov dword [esp + 0x860], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0048cfe0
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.00470f4c
add esp, 0x854
ret 8