Function at 0x410760
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443468
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jge 0x4107f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4107ee
mov dword [ebp - 0x2d0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov eax, dword [ebp - 0x2d0]
jmp 0x410c06
jmp 0x4107fd
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.0040a210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040a210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0040a210
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040a210
mov byte [ebp - 4], 4
mov ecx, dword [0x44ce20]
push ecx
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040a450
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jle 0x410bb4
lea ecx, [ebp + 8]
call fcn.0040a390
cmp dword [ebp - 0x68], eax
jae 0x410bb4
mov edx, dword [ebp - 0x68]
push edx
push 0
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp + 8]
call fcn.0040a470
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x36c]
push edx
lea ecx, [ebp - 0x84]
call fcn.0040a2f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ec]
call fcn.0040a2d0
mov eax, dword [0x44ce20]
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 1
push ecx
lea edx, [ebp - 0x308]
push edx
lea ecx, [ebp + 8]
call fcn.0040a470
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x374], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x374]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040a2f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x308]
call fcn.0040a2d0
push 0
push 0x2e
lea ecx, [ebp - 0x64]
call fcn.0040a400
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jle 0x4109c0
lea ecx, [ebp - 0x64]
call fcn.0040a390
cmp dword [ebp - 0x68], eax
jae 0x4109c0
mov edx, dword [ebp - 0x68]
push edx
push 0
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040a470
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x37c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a2f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x324]
call fcn.0040a2d0
mov eax, dword [0x44ce20]
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 1
push ecx
lea edx, [ebp - 0x340]
push edx
lea ecx, [ebp - 0x64]
call fcn.0040a470
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x384], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x384]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0040a2f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x340]
call fcn.0040a2d0
jmp 0x4109d9
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a2f0
push 0x4486ec
lea ecx, [ebp - 0x48]
call fcn.0040a310
lea ecx, [ebp - 0xa4]
call fcn.0040a210
mov byte [ebp - 4], 9
mov dword [ebp - 0xa8], 0
jmp 0x410a03
mov eax, dword [ebp - 0xa8]
add eax, 1
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 3
jge 0x410ba5
mov word [ebp - 0x2cc], 0
push 0x206
push 0
lea ecx, [ebp - 0x2ca]
push ecx
call fcn.00421260
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.0040a370
push eax
mov edx, dword [ebp - 0xa8]
add edx, 1
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a370
push eax
push str._s__d._s
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x2cc]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0040a310
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
call fcn.00410680
add esp, 4
push 0x448704
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x35c]
push eax
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x38c], ecx
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x38c]
push eax
lea ecx, [ebp - 0xc4]
push ecx
call fcn.0040b600
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x35c]
call fcn.0040a2d0
push 1
lea ecx, [ebp - 0xc4]
call fcn.0040a370
push eax
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x410b91
push 1
push 4
push 0
lea ecx, [ebp - 0xc4]
call fcn.0040a370
push eax
call fcn.004106d0
add esp, 0x10
mov dword [ebp - 0x360], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
call fcn.0040a2d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.0040a2d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040a2d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0040a2d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040a2d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov eax, dword [ebp - 0x360]
jmp 0x410c06
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
call fcn.0040a2d0
jmp 0x4109f4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.0040a2d0
mov dword [ebp - 0x364], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040a2d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0040a2d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040a2d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov eax, dword [ebp - 0x364]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret