Function at 0x40d62e
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x42e689
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x44106c]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp + 0x5c]
mov ebx, dword [ebp + 0x60]
push edi
call fcn.0040d1f9
cmp dword [esi + 0x10], 0
pop ecx
mov byte [ebp + 0x27], al
jne 0x40d67e
xor ecx, ecx
jmp 0x40d688
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40d688
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40d692
mov eax, dword [edi]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x40d874
shr ebx, 2
mov ecx, 0x431904
and bl, 1
mov eax, 0x4318fc
cmp byte [ebp + 0x27], 0
push 1
cmove eax, ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp + 0x20], eax
call fcn.00401c1f
cmp dword [esi + 0x10], 0
mov dword [ebp - 4], 6
je 0x40d78a
mov ecx, 0x43190c
test bl, bl
mov eax, 0x431914
cmovne eax, ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00401227
sub esp, 0x10
xor eax, eax
mov ecx, esp
mov dword [ebp + 0x1c], esp
push esi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00402c5e
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp + 0x18], esp
xor eax, eax
push edi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00402c5e
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 8
push 0x43191c
push eax
call fcn.00401227
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.004013f6
mov esi, eax
push 0x431920
push esi
call fcn.00401227
mov eax, dword [ebp + 0x20]
push eax
push esi
call fcn.00401227
push 0x431924
push esi
call fcn.00401227
add esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esi
call fcn.004013f6
mov esi, eax
mov eax, 0x43192c
jmp 0x40d7f6
mov ecx, 0x430440
test bl, bl
mov eax, 0x431930
cmovne eax, ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00401227
sub esp, 0x10
xor eax, eax
mov ecx, esp
mov dword [ebp + 0x18], esp
push edi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00402c5e
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 9
push 0x43191c
push eax
call fcn.00401227
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 6
call fcn.004013f6
mov esi, eax
push 0x431920
push esi
call fcn.00401227
mov eax, dword [ebp + 0x20]
pop ecx
pop ecx
push eax
push esi
call fcn.00401227
pop ecx
pop ecx
test bl, bl
je 0x40d816
lea eax, [ebp - 0xa4]
push 0x431938
push eax
call fcn.00401227
pop ecx
pop ecx
push 0
call fcn.0040e8e5
mov ecx, eax
call fcn.0040eaa0
test al, al
je 0x40d84c
lea eax, [ebp - 0xa4]
push eax
push 0x4318c0
push 0x239
push 0x431720
push 0
call fcn.0040e8e5
mov ecx, eax
call fcn.00403d6c
lea ecx, [ebp - 0xa4]
call fcn.00402881
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.0041011d
add ebp, 0x50
leave
ret
push 0x21f
push 0x4318c0
push 0x431720
lea ecx, [ebp + 0xc]
call fcn.00401ddd
push eax
push 0x42f5d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x42f5f8
push ebx
mov ebx, 0x431794
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0x20], esp
push esi
call fcn.00401ce6
and dword [ebp - 4], 0
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0x1c], esp
push edi
call fcn.00401ce6
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.00401f9d
mov byte [ebp - 4], 2
push 0x4318f0
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004013f6
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004013f6
mov ecx, eax
call fcn.00401212
mov ecx, eax
call fcn.00409af0
mov ecx, eax
call fcn.00401212
push eax
lea ecx, [ebp]
call fcn.00407ded
push eax
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp + 0x28]
push 0x43de64
push eax
call fcn.00412fe2
int3