Function at 0x4a0dc0
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x5708c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a800c]
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 0x4a0e08
xor al, al
jmp 0x4a11c6
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 0x4a0e41
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, esi
lea ebx, [edi + 0x10]
call fcn.00402520
cmp ebx, eax
je 0x4a0e69
call fcn.00402520
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a0e5e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00402610
lea ecx, [esi + 0x18]
mov dword [ebp - 0x10], ecx
lea edx, [ebx + 0x18]
call fcn.00402520
cmp edx, eax
je 0x4a0e96
call fcn.00402520
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4a0e8a
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x18]
push edx
call fcn.00402610
lea ecx, [esi + 0x30]
lea edx, [ebx + 0x30]
call fcn.00402520
cmp edx, eax
je 0x4a0ec0
call fcn.00402520
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4a0eb4
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x30]
push edx
call fcn.00402610
lea ecx, [esi + 0x48]
lea edx, [ebx + 0x48]
call fcn.00402520
cmp edx, eax
je 0x4a0eea
call fcn.00402520
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4a0ede
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x48]
push edx
call fcn.00402610
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.00402520
cmp ebx, eax
je 0x4a0f31
call fcn.00402520
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4a0f26
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, ebx
push edx
call fcn.00402610
cmp dword [esi + 0x64], 0
je 0x4a0f9f
push 0x573af0
lea ecx, [ebp - 0x28]
call fcn.00404ba0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push dword [esi + 0x64]
mov ecx, edi
push eax
call fcn.004a1db0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
cmp esi, 1
sete bl
jne 0x4a0f81
mov dword [edi + 0xb0], 0
jmp 0x4a11c4
cmp dword [edi + 0xb0], 0
jne 0x4a11c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x4a11c4
lea ecx, [ebp]
call fcn.00402410
mov dword [ebp - 4], 1
mov edx, ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041b910
test al, al
je 0x4a0fd0
lea ecx, [ebp]
call fcn.0041aaf0
test al, al
jne 0x4a0fd0
lea ecx, [ebp]
call fcn.0041b030
lea ecx, [ebp]
call fcn.0041aaf0
test al, al
jne 0x4a0fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
xor bl, bl
jmp 0x4a11b5
lea esi, [edi + 0x28]
push str..tmp
mov edx, esi
lea ecx, [ebp + 0x60]
call fcn.0040fde0
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp + 0x60]
push eax
mov ecx, edi
call fcn.004a14b0
mov bl, al
test bl, bl
je 0x4a117a
mov ecx, esi
mov dword [edi + 0xb0], 0
call fcn.0041aa00
test al, al
je 0x4a1043
push esi
lea eax, [ebp + 0x60]
push eax
call fcn.004a11f0
mov bl, al
jmp 0x4a116a
push 0xb
mov ecx, esi
call fcn.004023c0
push eax
lea ecx, [ebp + 0x60]
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4a1067
mov bl, 1
jmp 0x4a116a
lea ecx, [ebp + 0x18]
xor bl, bl
call fcn.00402410
mov byte [ebp - 4], 3
mov edx, ecx
lea ecx, [ebp + 0x60]
call fcn.0042cbb0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp + 0x30]
call fcn.00402410
mov byte [ebp - 4], 4
mov edx, ecx
mov ecx, esi
call fcn.0042cbb0
test al, al
jne 0x4a10a9
test bl, bl
je 0x4a10e6
push 0xb
lea ecx, [ebp + 0x30]
call fcn.004023c0
push eax
lea ecx, [ebp + 0x18]
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4a10e6
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x30]
call fcn.00402400
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00402400
mov bl, 1
jmp 0x4a116a
mov ecx, esi
call fcn.0042c590
cmp eax, 0xffffffff
je 0x4a1150
push esi
lea ecx, [ebp + 0x48]
call fcn.00402430
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
call fcn.0042c970
test al, al
je 0x4a1144
lea edx, [ebp + 0x48]
mov ecx, esi
call fcn.0042c630
test al, al
je 0x4a1144
mov edx, esi
lea ecx, [ebp + 0x60]
call fcn.0042c630
lea ecx, [ebp + 0x48]
test al, al
je 0x4a113d
call fcn.0042c740
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.00402400
jmp 0x4a10c7
mov edx, esi
call fcn.0042c630
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.00402400
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x30]
call fcn.00402400
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00402400
xor bl, bl
test bl, bl
je 0x4a1194
mov dword [edi + 0xb0], 0
jmp 0x4a11a9
cmp byte [edi + 0x70], 0
jne 0x4a1194
lea ecx, [ebp + 0x60]
call fcn.0041aa00
test al, al
je 0x4a1194
lea ecx, [ebp + 0x60]
call fcn.0042c740
cmp dword [edi + 0xb0], 0
jne 0x4a11a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x60]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00402400
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.0055929f
lea esp, [ebp + 0x7c]
pop ebp
ret 4