Function at 0x459400
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d548
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4c86e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x38], edi
mov esi, edx
mov dword [ebp - 0x48], esi
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x459449
xor eax, eax
jmp 0x459706
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push ebx
push 0x4ac2d4
lea ecx, [ebp - 0x30]
call fcn.00408030
mov dword [ebp - 4], ebx
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x459470
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00408030
push 4
push str..tmp
lea eax, [ebp - 0x30]
call fcn.0044f260
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4594a0
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0xffffffff
jne 0x4594e3
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], 0x10
jb 0x4594d6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00459b1e
add esp, 4
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
xor eax, eax
jmp 0x4596ff
mov byte [ebp - 0x31], bl
mov byte [ebp - 4], 1
mov byte [ebp - 0x94], bl
xor eax, eax
mov dword [ebp - 0x93], eax
mov dword [ebp - 0x8f], eax
mov dword [ebp - 0x8b], eax
mov word [ebp - 0x87], ax
mov byte [ebp - 0x85], al
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
push ebx
push ebx
push 0x38
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov ecx, dword [edi + 4]
cmp eax, dword [ecx + 0x10]
jae 0x4595c3
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + eax*4]
mov dword [ebp - 0x58], ecx
cmp ecx, ebx
je 0x4595bb
push esi
mov edi, 4
lea ebx, [ebp - 0x3c]
call fcn.0044f7c0
add esp, 4
test al, al
jne 0x459581
mov dword [ebp - 0x4c], 0x144
push 0x4bb4e8
lea edx, [ebp - 0x4c]
push edx
call fcn.0048453b
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
push esi
mov edi, dword [ecx + 0xc]
mov ebx, dword [ebp - 0x58]
call fcn.0044f7c0
add esp, 4
test al, al
jne 0x4595af
mov dword [ebp - 0x44], 0x149
push 0x4bb4e8
lea edx, [ebp - 0x44]
push edx
call fcn.0048453b
add dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov edi, dword [ebp - 0x38]
add eax, 1
jmp 0x45953f
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x459607
mov edi, dword [edi + 0xc]
cmp edi, ebx
je 0x459604
push esi
mov ebx, eax
call fcn.0044f7c0
add esp, 4
test al, al
jne 0x4595f5
mov dword [ebp - 0x5c], 0x156
push 0x4bb4e8
lea eax, [ebp - 0x5c]
push eax
call fcn.0048453b
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x60], edx
xor ebx, ebx
mov edi, ecx
jmp 0x459607
mov edi, dword [ebp - 0x38]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x78], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x74], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x70], ecx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x68], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x84], 0x46544d42
mov dword [ebp - 0x7c], 0x102
push esi
mov edi, 0x38
lea ebx, [ebp - 0x94]
call fcn.0044f7c0
add esp, 4
test al, al
jne 0x45966f
mov dword [ebp - 0x54], 0x16c
push 0x4bb4e8
lea ecx, [ebp - 0x54]
push ecx
call fcn.0048453b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], 0xffffffff
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x459689
lea eax, [ebp - 0x2c]
push 1
mov edx, dword [ebp - 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4596af
mov dword [ebp - 0x50], 0x175
push 0x4bb4e8
lea eax, [ebp - 0x50]
push eax
call fcn.0048453b
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0
jmp 0x4596d8
movzx esi, byte [ebp - 0x31]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x4596f5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00459b1e
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov eax, esi
mov dword [ebp - 0x18], 0xf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047e440
mov esp, ebp
pop ebp
ret