Function at 0x5010e0
Capabilities:
Get file size
Move file

Disassembly:
mov eax, 0x249c
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x2498], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24ac]
push esi
mov esi, dword [esp + 0x24ac]
push edi
push 0xa27
lea eax, [esp + 0x105d]
push 0
push eax
mov byte [esp + 0x1064], 0
call fcn.005dfd60
push 0xa27
lea ecx, [esp + 0x241]
push 0
push ecx
mov byte [esp + 0x248], 0
call fcn.005dfd60
push 0xa27
lea edx, [esp + 0x1a9d]
push 0
push edx
mov byte [esp + 0x1aa4], 0
call fcn.005dfd60
add esp, 0x24
cmp dword [0x68fed4], 0xffffffff
jne 0x50118b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x68fed4
call fcn.004d9f10
add esp, 0x2c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x5011a0
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]
push 5
test ebp, ebp
je 0x5011c9
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x5011d3
push 0
lea ecx, [esp + 0x238]
push ecx
call ebx
xor esi, esi
cmp eax, esi
jne 0x5015dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x68fed4], esi
je 0x5013cf
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x230]
push edx
call edi
test eax, eax
jle 0x501271
jmp 0x501210
movsx eax, byte [esp + esi + 0x230]
push eax
call fcn.005e1802
add esp, 4
test eax, eax
je 0x501262
movsx ecx, byte [esp + esi + 0x230]
push ecx
call fcn.005e1883
add esp, 4
test eax, eax
je 0x50124a
movsx edx, byte [esp + esi + 0x230]
push edx
call fcn.005e2b96
jmp 0x501258
movsx eax, byte [esp + esi + 0x230]
push eax
call fcn.005e3ae6
mov byte [esp + esi + 0x234], al
add esp, 4
lea ecx, [esp + 0x230]
push ecx
inc esi
call edi
cmp esi, eax
jl 0x501210
test ebp, ebp
je 0x501305
lea edx, [esp + 0x1058]
push edx
xor esi, esi
call edi
test eax, eax
jle 0x5012f1
lea esp, [esp]
movsx eax, byte [esp + esi + 0x1058]
push eax
call fcn.005e1802
add esp, 4
test eax, eax
je 0x5012e2
movsx ecx, byte [esp + esi + 0x1058]
push ecx
call fcn.005e1883
add esp, 4
test eax, eax
je 0x5012ca
movsx edx, byte [esp + esi + 0x1058]
push edx
call fcn.005e2b96
jmp 0x5012d8
movsx eax, byte [esp + esi + 0x1058]
push eax
call fcn.005e3ae6
mov byte [esp + esi + 0x105c], al
add esp, 4
lea ecx, [esp + 0x1058]
push ecx
inc esi
call edi
cmp esi, eax
jl 0x501290
push 5
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x501311
push 5
push 0
lea ecx, [esp + 0x238]
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x5013c8
push 0x207
push eax
lea edx, [esp + 0x31]
push edx
mov byte [esp + 0x34], al
call fcn.005dfd60
push 0x207
lea eax, [esp + 0xc69]
push esi
push eax
mov byte [esp + 0xc70], 0
call fcn.005dfd60
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x2c]
push 0x64b230
push edx
mov edi, eax
call fcn.005dfb23
add esp, 0xc
test ebp, ebp
je 0x5013b2
lea eax, [esp + 0x1058]
push eax
lea ecx, [esp + 0xc5c]
push 0x64b228
push ecx
call fcn.005dfb23
lea edx, [esp + 0xc64]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004dc5c0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x5015dd
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004dc5c0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x5015dd
push 0xa28
lea edx, [esp + 0x1a84]
push edx
lea eax, [esp + 0x238]
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x501404
lea ecx, [esp + 0x1a80]
push ecx
lea edx, [esp + 0x234]
push edx
call edi
push 0x3ff
lea eax, [esp + 0xc5d]
push esi
push eax
mov byte [esp + 0xc64], 0
call fcn.005dfd60
add esp, 0xc
mov eax, 0x64b224
cmp ebp, esi
je 0x501432
lea eax, [esp + 0x1058]
lea ecx, [esp + 0x230]
push ecx
push eax
lea edx, [esp + 0xc60]
push 0x64b218
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x64b210]
mov dx, word [0x64b214]
mov ebx, eax
mov eax, dword [0x64b20c]
push 0x103
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov al, byte [0x64b216]
lea ecx, [esp + 0x3d]
push esi
push ecx
mov word [esp + 0x40], dx
mov byte [esp + 0x42], al
call fcn.005dfd60
lea edx, [esp + 0x44]
push 0x104
push edx
mov byte [esp + 0x4c], 0
call fcn.004ebf90
add esp, 0x24
push 0x64b1fc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x8000080
push 4
push esi
push esi
lea ecx, [esp + 0x3c]
push 0xc0000000
push ecx
call fcn.004e0400
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x5014dd
xor eax, eax
jmp 0x5015dd
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 0x5015bc
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x5015b2
push 0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x50153e
add eax, edi
mov dword [esp + 0x10], eax
jne 0x50155b
lea ecx, [esp + 0x1c]
push ecx
lea edx, [edi + ebp]
push 0x60c800
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebp, eax
mov eax, ebp
jmp 0x50158d
push 0xa
push eax
call fcn.005e0940
mov esi, eax
add esp, 8
test esi, esi
jne 0x501570
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.005e4630
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.005e13c0
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.004dca10
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.004dca10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x249c
ret 8