Function at 0x451860
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7b84
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push 0
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x221], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4518d4
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x4518f8
cmp dword [ebp - 0x228], eax
je 0x451920
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
mov byte [ebp - 0x221], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x22c], eax
push 0x4e48a4
push 0x21
call fcn.00455c0c
add esp, 8
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x451945
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x451ce1
xorps xmm0, xmm0
xor esi, esi
movups xmmword [eax], xmm0
mov edi, eax
movups xmmword [eax + 0x10], xmm0
mov byte [eax + 0x20], 0
nop word [eax + eax]
movzx eax, byte [esi + 0x4e5d70]
push eax
push 0x4d11a8
push 2
push 3
push edi
call fcn.0044c3c6
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x451960
mov edi, dword [ebp - 0x230]
lea ecx, [ebp - 0x28]
mov byte [edi + 0x20], 0
call fcn.0040c36c
push str._Profile_
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.004525d0
push 0x4d0f3c
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.00452590
push str.config1
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.00452590
push 0x4d1258
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1d8]
call fcn.00452590
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c0]
call fcn.00452590
push 0x4d0f3c
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1a8]
call fcn.00452590
push str.config2
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x190]
call fcn.00452590
push 0x4d1258
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x178]
call fcn.00452590
push dword [ebp - 0x234]
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x160]
call fcn.00452590
push 0x4d0f3c
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x148]
call fcn.00452590
push str.config3
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x130]
call fcn.00452590
push 0x4d1258
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x118]
call fcn.00452590
push dword [ebp - 0x238]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x100]
mov edx, eax
call fcn.00452590
push 0x4d0f3c
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe8]
call fcn.00452590
push str.config4
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.00452590
push 0x4d1258
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb8]
call fcn.00452590
add esp, 0x40
push dword [ebp - 0x23c]
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
call fcn.00452590
push 0x4d0f3c
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x88]
call fcn.00452590
push str.config5
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
call fcn.00452590
push 0x4d1240
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x58]
call fcn.00452590
push 0x4d0f3c
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.00452590
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x15
cmp eax, esi
je 0x451bab
push 0
push 1
mov ecx, eax
call fcn.0040735b
mov ecx, esi
call fcn.00402756
lea ecx, [ebp - 0x28]
call fcn.00402756
mov ecx, esi
call fcn.00402756
lea ecx, [ebp - 0x28]
call fcn.00402756
push esi
call fcn.004032eb
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b118
lea ecx, [ebp - 0x40]
call fcn.0040b307
lea ecx, [ebp - 0x58]
call fcn.0040b307
lea ecx, [ebp - 0x70]
call fcn.0040b307
lea ecx, [ebp - 0x88]
call fcn.0040b307
lea ecx, [ebp - 0xa0]
call fcn.0040b307
lea ecx, [ebp - 0xb8]
call fcn.0040b307
lea ecx, [ebp - 0xd0]
call fcn.0040b307
lea ecx, [ebp - 0xe8]
call fcn.0040b307
lea ecx, [ebp - 0x100]
call fcn.0040b307
lea ecx, [ebp - 0x118]
call fcn.0040b307
lea ecx, [ebp - 0x130]
call fcn.0040b307
lea ecx, [ebp - 0x148]
call fcn.0040b307
lea ecx, [ebp - 0x160]
call fcn.0040b307
lea ecx, [ebp - 0x178]
call fcn.0040b307
lea ecx, [ebp - 0x190]
call fcn.0040b307
lea ecx, [ebp - 0x1a8]
call fcn.0040b307
lea ecx, [ebp - 0x1c0]
call fcn.0040b307
lea ecx, [ebp - 0x1d8]
call fcn.0040b307
lea ecx, [ebp - 0x1f0]
call fcn.0040b307
lea ecx, [ebp - 0x208]
call fcn.0040b307
lea ecx, [ebp - 0x220]
call fcn.0040b307
push 0
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00401e9e
push eax
lea ecx, [ebp - 0x28]
call fcn.00415551
mov esi, dword [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x221], 0
je 0x451cd0
cmp esi, 0xffffffff
je 0x451cd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00455c15
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0040b307
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret 0x1c