Function at 0x417170
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dcfb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5b5be8]
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
mov eax, dword [ebp + 8]
mov esi, edx
push 0x58c578
lea edx, [ebp - 0x9c]
push esi
push edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], ecx
call fcn.0040b1b0
push str..new
lea eax, [ebp - 0x2c]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040b1b0
add esp, 0x18
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
mov edi, 0x10
cmp dword [ebp - 0x88], edi
jae 0x4171f5
lea ecx, [ebp - 0x9c]
cmp dword [esi + 0x14], edi
jb 0x4171fe
mov eax, dword [esi]
jmp 0x417200
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x417269
cmp dword [esi + 0x14], edi
jb 0x417213
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0x20]
push eax
push edx
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x41723e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x88], edi
jb 0x417262
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x417417
cmp dword [esi + 0x14], edi
jb 0x417270
mov esi, dword [esi]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x41727b
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4172e8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x417292
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xa0]
push eax
mov eax, dword [edx + 0x20]
push eax
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x4172bd
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x88], edi
jb 0x417262
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x417417
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp - 0xa4]
push esi
call fcn.00409830
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0041e360
push 0x58c578
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 2
call fcn.0040b1b0
push str..new
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.0040b1b0
add esp, 0x1c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x417344
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x41734f
lea eax, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x417435
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x41736a
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x417375
lea eax, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4174c6
cmp dword [ebp - 0x50], edi
jb 0x417396
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], edi
jb 0x4173b4
mov edx, dword [ebp - 0x80]
push edx
call fcn.004310e1
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0x34], edi
jb 0x4173d6
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
inc esi
cmp esi, 8
jl 0x4172f0
cmp dword [ebp - 0x18], edi
jb 0x4173f1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x88], edi
jb 0x417415
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004310e1
add esp, 4
mov al, 1
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.005320a3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x417440
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0x20]
push eax
push edx
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x50], edi
jb 0x41746b
mov eax, dword [ebp - 0x64]
push eax
call fcn.004310e1
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], edi
jb 0x41748a
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0x34], edi
jb 0x4174a4
mov edx, dword [ebp - 0x48]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x4174be
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], esi
jmp 0x417245
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x4174d1
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xa0]
push eax
mov eax, dword [edx + 0x20]
push eax
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x50], edi
jb 0x4174fc
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], edi
jb 0x41751b
mov edx, dword [ebp - 0x80]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0x34], edi
jb 0x417535
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x41754f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x88], edi
jb 0x417262
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x417417