Function at 0x1005ece0
Capabilities:
Get file size
Move file

Disassembly:
mov eax, 0x249c
call fcn.10140530
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x2498], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24a8]
push esi
push edi
push 0xa27
lea eax, [esp + 0x105d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1064], 0
call fcn.1012e060
push 0xa27
lea ecx, [esp + 0x241]
push 0
push ecx
mov byte [esp + 0x248], 0
call fcn.1012e060
push 0xa27
lea edx, [esp + 0x1a9d]
push 0
push edx
mov byte [esp + 0x1aa4], 0
call fcn.1012e060
add esp, 0x24
cmp dword [0x1019395c], 0xffffffff
jne 0x1005ed86
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1019395c
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.1006bdc0
add esp, 0x20
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x1005ed9b
push ebp
lea eax, [esp + 0x105c]
push eax
call edi
push esi
lea ecx, [esp + 0x234]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor esi, esi
push 5
cmp ebp, esi
je 0x1005edc6
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x1005edcf
push esi
lea ecx, [esp + 0x238]
push ecx
call ebx
cmp eax, esi
jne 0x1005f20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1019395c], esi
je 0x1005f000
jmp 0x1005edf0
cmp byte [esp + 0x230], 0
lea eax, [esp + 0x230]
je 0x1005ee07
inc eax
cmp byte [eax], 0
jne 0x1005ee01
lea edx, [esp + 0x230]
sub eax, edx
cmp esi, eax
jae 0x1005ee8d
movsx eax, byte [esp + esi + 0x230]
lea ecx, [eax + 1]
cmp ecx, 0x100
ja 0x1005ee87
push eax
call fcn.10128c23
add esp, 4
test eax, eax
je 0x1005ee87
movsx eax, byte [esp + esi + 0x230]
lea edx, [eax + 1]
cmp edx, 0x100
ja 0x1005ee6f
push eax
call fcn.10128ca4
add esp, 4
test eax, eax
je 0x1005ee6f
movsx eax, byte [esp + esi + 0x230]
push eax
call fcn.10129368
mov byte [esp + esi + 0x234], al
add esp, 4
inc esi
jmp 0x1005edf0
movsx ecx, byte [esp + esi + 0x230]
push ecx
call fcn.1012af01
mov byte [esp + esi + 0x234], al
add esp, 4
inc esi
jmp 0x1005edf0
test ebp, ebp
je 0x1005ef51
xor esi, esi
jmp 0x1005eea0
cmp byte [esp + 0x1058], 0
lea eax, [esp + 0x1058]
je 0x1005eeb7
inc eax
cmp byte [eax], 0
jne 0x1005eeb1
lea edx, [esp + 0x1058]
sub eax, edx
cmp esi, eax
jae 0x1005ef3d
movsx eax, byte [esp + esi + 0x1058]
lea ecx, [eax + 1]
cmp ecx, 0x100
ja 0x1005ef37
push eax
call fcn.10128c23
add esp, 4
test eax, eax
je 0x1005ef37
movsx eax, byte [esp + esi + 0x1058]
lea edx, [eax + 1]
cmp edx, 0x100
ja 0x1005ef1f
push eax
call fcn.10128ca4
add esp, 4
test eax, eax
je 0x1005ef1f
movsx eax, byte [esp + esi + 0x1058]
push eax
call fcn.10129368
mov byte [esp + esi + 0x105c], al
add esp, 4
inc esi
jmp 0x1005eea0
movsx ecx, byte [esp + esi + 0x1058]
push ecx
call fcn.1012af01
mov byte [esp + esi + 0x105c], al
add esp, 4
inc esi
jmp 0x1005eea0
push 5
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x1005ef5d
push 5
push 0
lea ecx, [esp + 0x238]
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x1005eff9
push 0x207
push eax
lea edx, [esp + 0x31]
push edx
mov byte [esp + 0x34], al
call fcn.1012e060
push 0x207
lea eax, [esp + 0xc69]
push esi
push eax
mov byte [esp + 0xc70], 0
call fcn.1012e060
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x2c]
push str.___s
push edx
mov edi, eax
call fcn.10127dc0
add esp, 0xc
test ebp, ebp
je 0x1005efe7
lea eax, [esp + 0x1058]
push eax
lea ecx, [esp + 0xc5c]
push str.____s
push ecx
call fcn.10127dc0
add esp, 0xc
lea edx, [esp + 0xc58]
jmp 0x1005efe9
xor edx, edx
lea ecx, [esp + 0x28]
call fcn.1007fd10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x1005f20e
push 0xa28
lea ecx, [esp + 0x1a84]
lea edx, [esp + 0x234]
mov dword [esp + 0x14], esi
call fcn.1005f370
add esp, 4
test eax, eax
je 0x1005f035
lea edx, [esp + 0x1a80]
push edx
lea eax, [esp + 0x234]
push eax
call edi
push 0x3ff
lea ecx, [esp + 0xc5d]
push esi
push ecx
mov byte [esp + 0xc64], 0
call fcn.1012e060
add esp, 0xc
mov eax, 0x10169b8c
cmp ebp, esi
je 0x1005f063
lea eax, [esp + 0x1058]
lea edx, [esp + 0x230]
push edx
push eax
lea eax, [esp + 0xc60]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [str._Rename__r_n]
mov edx, dword [0x10169ba0]
push 0x103
mov dword [esp + 0x34], edx
mov ebx, eax
mov ax, word [0x10169ba4]
mov dword [esp + 0x30], ecx
mov cl, byte [0x10169ba6]
lea edx, [esp + 0x3d]
push 0
push edx
mov word [esp + 0x40], ax
mov byte [esp + 0x42], cl
call fcn.1012e060
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x4c], 0
call fcn.1005f830
add esp, 0x24
push str.WinInit.Ini
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x8000080
push 4
push 0
push 0xc0000000
lea edi, [esp + 0x38]
call fcn.1005aa40
mov esi, eax
add esp, 0x10
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x1005f10e
xor eax, eax
jmp 0x1005f20e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
lea edx, [ebx + ebp + 0xa]
push edx
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1005f1ed
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x1005f1e3
push 0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
je 0x1005f16f
add eax, edi
mov dword [esp + 0x10], eax
jne 0x1005f18c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [edi + ebp]
push 0x1014d8cc
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebp, eax
mov eax, ebp
jmp 0x1005f1be
push 0xa
push eax
call fcn.10128490
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005f1a1
mov esi, dword [esp + 0x10]
inc esi
mov eax, edi
sub eax, esi
add eax, ebp
push eax
lea ecx, [esi + ebx]
push esi
push ecx
call fcn.10129ea0
add esp, 0xc
sub esi, edi
mov eax, esi
mov esi, dword [esp + 0x14]
push ebx
lea edx, [esp + 0xc5c]
push edx
add eax, edi
push eax
call fcn.10130710
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add ebp, ebx
mov dword [esp + 0x10], 1
lea eax, [esp + 0x18]
push eax
call fcn.10082e10
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x14]
push ecx
call fcn.10082e10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10127db1
add esp, 0x249c
ret 4