Function at 0x51e9b8
Capabilities:
Move file

Disassembly:
push 0x458
mov eax, 0x5cef89
call fcn.00573e45
mov dword [ebp - 0x444], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, dword [ebp + 0xc]
call fcn.0050d116
test al, al
je 0x51ed11
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x51ed11
push edi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x448], 0xa
xor bl, bl
call fcn.00409657
xor edi, edi
xor eax, eax
push 7
mov dword [ebp - 4], edi
pop ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edi
mov word [ebp - 0x88], ax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edi
mov word [ebp - 0x70], ax
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00546fad
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xa0]
call fcn.00546fad
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
push ecx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00547089
push ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00547089
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040a36a
test eax, eax
je 0x51ea9e
lea edx, [ebp - 0xa0]
mov ecx, esi
call fcn.004ef775
push edi
mov edi, dword [ebp - 0x444]
lea eax, [ebp - 0xa0]
push eax
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0051e658
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 5
call fcn.0050c5f7
xor edx, edx
mov ecx, eax
call fcn.0050c494
cmp eax, 0x102
je 0x51eaf7
lea eax, [ebp - 0x28]
push eax
push esi
push ecx
push ecx
lea ecx, [ebp - 0x440]
call fcn.00520124
push 0x6bd4a4
lea eax, [ebp - 0x440]
push eax
call fcn.00575c7a
and dword [ebp - 0x444], 0
xor eax, eax
test bl, bl
jne 0x51ecc7
inc eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.005201be
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x51eb42
mov eax, dword [esi]
jmp 0x51eb44
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x51ebdd
push 0x38
mov bl, 1
call fcn.0056ef3f
pop ecx
mov dword [ebp - 0x454], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x51eb7c
lea ecx, [ebp - 0x28]
push ecx
push esi
mov ecx, eax
call fcn.0051e396
jmp 0x51eb7e
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], 0x93
test eax, eax
je 0x51eb96
lock inc dword [eax + 4]
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0051e90f
push dword [ebp - 0x454]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x464]
push eax
lea ecx, [edi + 0x14]
call fcn.0049d850
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x51ebd4
call fcn.0050c47a
mov byte [ebp - 4], 5
jmp 0x51ec75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0052021c
lea eax, [ebp - 0x28]
push eax
call fcn.0051e89c
test al, al
jne 0x51ec75
mov ecx, esi
call fcn.0050d116
test al, al
jne 0x51ec1c
push esi
call fcn.00520276
mov bl, 1
jmp 0x51ec75
lea ecx, [ebp - 0x28]
call fcn.0050d116
test al, al
je 0x51ec5a
push 1
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0xb8]
push eax
call fcn.0051e658
push eax
lea ecx, [ebp - 0x28]
call fcn.0040959d
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.0040968b
jmp 0x51ec75
lea ecx, [edi + 0x34]
call fcn.0050c5f7
mov edx, 0x1f4
mov ecx, eax
call fcn.0050c494
cmp eax, 0x102
jne 0x51ecb0
mov eax, dword [ebp - 0x450]
cmp eax, dword [ebp - 0x448]
jb 0x51eb00
test bl, bl
jne 0x51ecc7
lea eax, [ebp - 0x448]
push eax
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push ecx
push dword [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x440]
call fcn.00520362
jmp 0x51eae6
lea eax, [ebp - 0x28]
push eax
push esi
push ecx
push ecx
lea ecx, [ebp - 0x440]
call fcn.005202c8
jmp 0x51eae6
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.0040968b
call fcn.00573def
ret 8