Function at 0x5ece30
Capabilities:
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x5ece39
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.0040a7ac
xor eax, eax
push ebp
push 0x5ed1f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [esi], 0
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov byte [ebx], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [0x6047b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
mov eax, dword [0x6043a8]
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov eax, dword [0x6043a8]
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x5ed20c
call fcn.0040b2f4
mov edx, dword [ebp - 0x28]
mov eax, dword [0x6043a8]
add eax, 8
call fcn.0040b5b4
mov eax, dword [0x6047b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.005d94a8
test al, al
jne 0x5ecef9
mov byte [ebx], 1
jmp 0x5ed195
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x5ecf1b
mov byte [ebx], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5ed195
cmp dword [ebp - 0x1c], 0
jne 0x5ecf29
cmp dword [ebp - 0x20], 0x10
ja 0x5ecf39
jmp 0x5ecf2b
jg 0x5ecf39
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5ed195
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, ebx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.005d98a8
test al, al
je 0x5ed05c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
push 1
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.005d9d28
test al, al
jne 0x5ecf89
mov byte [ebx], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5ed195
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 8]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 9]
test al, al
jne 0x5ecfc8
cmp dl, 1
jne 0x5ecfc8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x21]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.005ea538
jmp 0x5ecfce
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [esi], 0
je 0x5ed195
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.005d464c
mov eax, dword [ebp - 0x2c]
mov ecx, 1
mov edx, eax
mov eax, 0x5ed23c
call fcn.0040bad4
test eax, eax
je 0x5ed195
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.0040b5b4
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.005d9090
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.0040b5c8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.005d4710
mov eax, dword [ebp - 0x30]
call fcn.0040b26c
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.005d4710
mov eax, dword [ebp - 0x40]
call fcn.0040b26c
push eax
call sub.kernel32.dll_MoveFileW
jmp 0x5ed195
cmp byte [ebx], 0
je 0x5ed06f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5ed195
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, ebx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.005d9ae8
test al, al
jne 0x5ed09a
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5ed195
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
push 1
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.005d9d28
test al, al
jne 0x5ed0c9
mov byte [ebx], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5ed195
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 8]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 9]
test al, al
jne 0x5ed10e
cmp dl, 1
jne 0x5ed10e
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x21]
push eax
push 1
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.005e8b04
jmp 0x5ed114
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [esi], 0
je 0x5ed195
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.005d464c
mov eax, dword [ebp - 0x44]
mov ecx, 1
mov edx, eax
mov eax, 0x5ed23c
call fcn.0040bad4
test eax, eax
je 0x5ed195
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.0040b5b4
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov dl, 1
call fcn.005d9090
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call fcn.0040b5c8
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.005d4710
mov eax, dword [ebp - 0x48]
call fcn.0040b26c
push eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.005d4710
mov eax, dword [ebp - 0x58]
call fcn.0040b26c
push eax
call sub.kernel32.dll_MoveFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed1fe
lea eax, [ebp - 0x58]
call fcn.0040a6e0
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0040a6f8
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0040a6f8
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 8]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
lea eax, [ebp - 4]
call fcn.0040a6e0
pop eax
jmp eax