Function at 0x403960
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4346a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov al, byte [esp + 0x58]
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov byte [esp + 0x24], al
call fcn.00401d50
mov cl, byte [esp + 0x64]
push edi
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], edi
call fcn.00401d50
mov esi, dword [esp + 0x64]
mov byte [esp + 0x58], 1
cmp esi, edi
je 0x403a6c
mov dl, byte [esp + 0x64]
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call fcn.00401d50
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00402160
push 1
lea eax, [esp + 0x68]
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
mov byte [esp + 0x70], 0x5c
call fcn.00403da0
test eax, eax
jge 0x403a43
lea ecx, [ebp + 4]
push 0x4420e0
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00402aa0
add esp, 0xc
mov ecx, dword [0x4375d4]
mov byte [esp + 0x58], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00401b50
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 2
call fcn.00401d50
mov edx, dword [0x4375d4]
lea eax, [esp + 0x30]
push edx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00401fc0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.00401d50
jmp 0x403a88
mov ecx, dword [0x4375d4]
lea edx, [ebp + 0x14]
push ecx
push edi
push edx
lea ecx, [esp + 0x2c]
call fcn.00401b50
mov ecx, ebp
call fcn.004034e0
mov esi, dword [esp + 0x60]
test esi, esi
je 0x403b87
mov al, byte [esp + 0x64]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00401d50
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00402160
push 1
lea ecx, [esp + 0x68]
push 0
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 4
mov byte [esp + 0x70], 0x5c
call fcn.00403da0
test eax, eax
jge 0x403b1c
add ebp, 4
push 0x4420e0
lea edx, [esp + 0x44]
push ebp
push edx
call fcn.00402aa0
add esp, 0xc
mov ecx, dword [0x4375d4]
mov byte [esp + 0x58], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b50
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 4
call fcn.00401d50
mov edx, dword [0x4375d4]
lea eax, [esp + 0x30]
push edx
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fc0
mov eax, dword [esp + 0x14]
mov ecx, 0x4375d0
test eax, eax
je 0x403b42
mov ecx, eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x403b4f
mov eax, 0x4375d0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x403b63
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x403b87
mov al, byte [ecx - 1]
test al, al
je 0x403b7d
cmp al, 0xff
je 0x403b7d
dec al
mov byte [ecx - 1], al
jmp 0x403b87
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x14]
xor esi, esi
cmp ecx, esi
je 0x403bad
mov al, byte [ecx - 1]
test al, al
je 0x403ba3
cmp al, 0xff
je 0x403ba3
dec al
mov byte [ecx - 1], al
jmp 0x403bad
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
je 0x403be0
mov al, byte [ecx - 1]
test al, al
je 0x403bd6
cmp al, 0xff
je 0x403bd6
dec al
mov byte [ecx - 1], al
jmp 0x403be0
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0x50
ret 8