Function at 0x45cce0
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x505280
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x9c], 0
mov esi, dword [ebp + 0x84]
je 0x45cd28
xor al, al
jmp 0x45d0ff
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x45cd61
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, esi
lea ebx, [edi + 0x10]
call fcn.0040ac10
cmp ebx, eax
je 0x45cd89
call fcn.0040ac10
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x45cd7e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.0040ae30
lea ecx, [esi + 0x18]
mov dword [ebp - 0x10], ecx
lea edx, [ebx + 0x18]
call fcn.0040ac10
cmp edx, eax
je 0x45cdb6
call fcn.0040ac10
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x45cdaa
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x18]
push edx
call fcn.0040ae30
lea ecx, [esi + 0x30]
lea edx, [ebx + 0x30]
call fcn.0040ac10
cmp edx, eax
je 0x45cde0
call fcn.0040ac10
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x45cdd4
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x30]
push edx
call fcn.0040ae30
lea ecx, [esi + 0x48]
lea edx, [ebx + 0x48]
call fcn.0040ac10
cmp edx, eax
je 0x45ce0a
call fcn.0040ac10
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x45cdfe
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x48]
push edx
call fcn.0040ae30
mov al, byte [esi + 0x60]
lea ecx, [esi + 0x70]
mov byte [ebx + 0x60], al
mov al, byte [esi + 0x61]
mov byte [ebx + 0x61], al
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x6c], eax
add ebx, 0x70
call fcn.0040ac10
cmp ebx, eax
je 0x45ce51
call fcn.0040ac10
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x45ce46
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, ebx
push edx
call fcn.0040ae30
cmp dword [esi + 0x64], 0
je 0x45cebf
push 0x522f3c
lea ecx, [ebp - 0x28]
call fcn.0040a780
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push dword [esi + 0x64]
mov ecx, edi
push eax
call fcn.0045dd20
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
cmp esi, 1
sete bl
jne 0x45cea1
mov dword [edi + 0xb0], 0
jmp 0x45d0fd
cmp dword [edi + 0xb0], 0
jne 0x45d0fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x45d0fd
lea ecx, [ebp]
call fcn.0040a7c0
mov dword [ebp - 4], 1
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call fcn.004207d0
add esp, 8
test al, al
je 0x45cefd
lea eax, [ebp]
push eax
call fcn.004143c0
add esp, 4
test al, al
jne 0x45cefd
lea eax, [ebp]
push eax
call fcn.00414490
add esp, 4
lea eax, [ebp]
push eax
call fcn.004143c0
add esp, 4
test al, al
jne 0x45cf20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
xor bl, bl
jmp 0x45d0ee
push str..tmp
lea esi, [edi + 0x28]
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.0040b8f0
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp + 0x60]
push eax
mov ecx, edi
call fcn.0045d3e0
mov bl, al
test bl, bl
je 0x45d0af
push esi
mov dword [edi + 0xb0], 0
call fcn.004142b0
add esp, 4
test al, al
je 0x45cf76
push esi
lea eax, [ebp + 0x60]
push eax
call fcn.0045d120
mov bl, al
jmp 0x45d09f
push 0xb
mov ecx, esi
call fcn.0040a590
push eax
lea ecx, [ebp + 0x60]
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x45cf9a
mov bl, 1
jmp 0x45d09f
lea ecx, [ebp + 0x18]
xor bl, bl
call fcn.0040a7c0
mov byte [ebp - 4], 3
lea edx, [ebp + 0x18]
lea ecx, [ebp + 0x60]
call fcn.00426fa0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp + 0x30]
call fcn.0040a7c0
mov byte [ebp - 4], 4
lea edx, [ebp + 0x30]
mov ecx, esi
call fcn.00426fa0
test al, al
jne 0x45cfde
test bl, bl
je 0x45d01b
push 0xb
lea ecx, [ebp + 0x30]
call fcn.0040a590
push eax
lea ecx, [ebp + 0x18]
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x45d01b
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x30]
call fcn.0040a6f0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040a6f0
mov bl, 1
jmp 0x45d09f
mov ecx, esi
call fcn.00426930
cmp eax, 0xffffffff
je 0x45d085
push esi
lea ecx, [ebp + 0x48]
call fcn.0040a7e0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
call fcn.00426d50
test al, al
je 0x45d079
lea edx, [ebp + 0x48]
mov ecx, esi
call fcn.004269d0
test al, al
je 0x45d079
mov edx, esi
lea ecx, [ebp + 0x60]
call fcn.004269d0
lea ecx, [ebp + 0x48]
test al, al
je 0x45d072
call fcn.00426ae0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.0040a6f0
jmp 0x45cffc
mov edx, esi
call fcn.004269d0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.0040a6f0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x30]
call fcn.0040a6f0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040a6f0
xor bl, bl
test bl, bl
je 0x45d0cd
mov dword [edi + 0xb0], 0
jmp 0x45d0e2
cmp byte [edi + 0x70], 0
jne 0x45d0cd
lea eax, [ebp + 0x60]
push eax
call fcn.004142b0
add esp, 4
test al, al
je 0x45d0cd
lea ecx, [ebp + 0x60]
call fcn.00426ae0
cmp dword [edi + 0xb0], 0
jne 0x45d0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x60]
call fcn.0040a6f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0040a6f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.004d12c9
lea esp, [ebp + 0x7c]
pop ebp
ret 4