Function at 0x4025e0
Capabilities:
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x4170b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40e690]
mov dword [ebp - 0x33c], eax
mov ecx, dword [str._Rename__r_n]
mov dword [ebp - 0x338], ecx
mov edx, dword [0x40e688]
mov dword [ebp - 0x334], edx
mov ax, word [0x40e68c]
mov word [ebp - 0x330], ax
mov cl, byte [0x40e68e]
mov byte [ebp - 0x32e], cl
push 0x104
lea edx, [ebp - 0x110]
push edx
mov eax, dword [0x418500]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402650
jmp 0x4028fb
push 4
lea ecx, [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x40266f
jmp 0x4028fb
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.00403d40
add esp, 8
push 0x40e680
lea edx, [ebp - 0x328]
push edx
call fcn.00403d50
add esp, 8
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.00403d50
add esp, 8
push 0x40e67c
lea edx, [ebp - 0x328]
push edx
call fcn.00403d50
add esp, 8
push 0x418508
lea eax, [ebp - 0x218]
push eax
call fcn.00403d40
add esp, 8
push str.wininit.ini
lea ecx, [ebp - 0x218]
push ecx
call fcn.00403d50
add esp, 8
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0xffffffff
jne 0x40271e
jmp 0x4028fb
push 0
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x220], eax
push 0
lea ecx, [ebp - 0x328]
push ecx
call fcn.00403e40
add esp, 4
mov edx, dword [ebp - 0x220]
lea eax, [edx + eax + 0xb]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4028c9
push 0
push 0
push 0
push 2
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x4028bc
lea eax, [ebp - 0x328]
push eax
call fcn.00403e40
add esp, 4
mov dword [ebp - 0x344], eax
lea ecx, [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x340]
push edx
call fcn.00403980
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x402813
lea eax, [ebp - 0x338]
push eax
push 0x40e66c
mov ecx, dword [ebp - 0x340]
add ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x348], edx
jmp 0x40287a
push 0xa
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00403960
add esp, 8
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
add ecx, 1
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x340]
add edx, dword [ebp - 0x220]
sub edx, dword [ebp - 0x350]
push edx
mov eax, dword [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x350]
add ecx, dword [ebp - 0x344]
push ecx
call fcn.00404630
add esp, 0xc
mov edx, dword [ebp - 0x350]
sub edx, dword [ebp - 0x340]
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x340]
add edx, dword [ebp - 0x348]
push edx
call fcn.004042c0
add esp, 0xc
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x344]
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c0b
mov esp, ebp
pop ebp
ret