Function at 0x40d126
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x431712
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x444170]
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.0040ccf1
cmp dword [esi + 0x10], 0
pop ecx
mov byte [ebp + 0x27], al
jne 0x40d176
xor ecx, ecx
jmp 0x40d180
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40d180
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40d18a
mov eax, dword [edi]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x40d34e
shr ebx, 2
mov ecx, 0x43497c
and bl, 1
mov eax, 0x434974
cmp byte [ebp + 0x27], 0
push 1
cmove eax, ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp + 0x20], eax
call fcn.00401c37
cmp dword [esi + 0x10], 0
mov dword [ebp - 4], 6
je 0x40d26e
mov ecx, 0x434984
test bl, bl
mov eax, 0x43498c
cmovne eax, ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00401187
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x1c], esp
push esi
call fcn.00401d22
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp + 0x18], esp
push edi
call fcn.00401d22
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 8
push 0x434994
push eax
call fcn.00401187
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.00401356
mov esi, eax
push 0x434998
push esi
call fcn.00401187
mov eax, dword [ebp + 0x20]
push eax
push esi
call fcn.00401187
push 0x43499c
push esi
call fcn.00401187
add esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esi
call fcn.00401356
mov esi, eax
mov eax, 0x4349a4
jmp 0x40d2d0
mov ecx, 0x4334b8
test bl, bl
mov eax, 0x4349a8
cmovne eax, ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00401187
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x18], esp
push edi
call fcn.00401d22
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 9
push 0x434994
push eax
call fcn.00401187
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 6
call fcn.00401356
mov esi, eax
push 0x434998
push esi
call fcn.00401187
mov eax, dword [ebp + 0x20]
pop ecx
pop ecx
push eax
push esi
call fcn.00401187
pop ecx
pop ecx
test bl, bl
je 0x40d2f0
lea eax, [ebp - 0xa4]
push 0x4349b0
push eax
call fcn.00401187
pop ecx
pop ecx
push 0
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40d326
lea eax, [ebp - 0xa4]
push eax
push 0x434938
push 0x239
push 0x434798
push 0
call fcn.0040e92a
mov ecx, eax
call fcn.00403d5c
lea ecx, [ebp - 0xa4]
call fcn.004028bb
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.004100ef
add ebp, 0x50
leave
ret
push 0x21f
push 0x434938
push 0x434798
lea ecx, [ebp + 0xc]
call fcn.00401e55
push eax
push 0x4325e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x432608
push ebx
mov ebx, 0x43480c
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0x20], esp
push esi
call fcn.00401d22
and dword [ebp - 4], 0
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0x1c], esp
push edi
call fcn.00401d22
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.0040200b
mov byte [ebp - 4], 2
push 0x434968
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401356
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401356
mov ecx, eax
call fcn.00401172
mov ecx, eax
call fcn.00409a48
mov ecx, eax
call fcn.00401172
push eax
lea ecx, [ebp]
call fcn.00407cab
push eax
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp + 0x28]
push 0x441144
push eax
call fcn.00413032
int3