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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d90c4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x238
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
push 0
push 0
mov dword [ebp - 0x238], eax
mov eax, dword [ebx + 0x14]
push 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebx + 0x18]
push esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x225], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46dba8
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x46dbcc
cmp dword [ebp - 0x22c], eax
je 0x46dbf4
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
mov byte [ebp - 0x225], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x230], eax
push 0x5142bc
push 0x21
call fcn.004a600d
add esp, 8
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x46dc19
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46e364
xorps xmm0, xmm0
xor esi, esi
movups xmmword [eax], xmm0
mov edi, eax
movups xmmword [eax + 0x10], xmm0
mov byte [eax + 0x20], 0
nop dword [eax + eax]
movzx eax, byte [esi + 0x515370]
push eax
push str._02x
push 2
push 3
push edi
call fcn.0046c070
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x46dc30
mov edi, dword [ebp - 0x234]
mov byte [edi + 0x20], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push str._Profile_
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00472190
add esp, 4
push 0x4fa284
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20c]
call fcn.00472130
add esp, 4
push str.config1
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f4]
call fcn.00472130
add esp, 4
push 0x4fa28c
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1dc]
call fcn.00472130
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c4]
call fcn.00472130
add esp, 4
push 0x4fa284
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1ac]
call fcn.00472130
add esp, 4
push str.config2
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x194]
call fcn.00472130
add esp, 4
push 0x4fa28c
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x17c]
call fcn.00472130
add esp, 4
push dword [ebp - 0x238]
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x164]
call fcn.00472130
add esp, 4
push 0x4fa284
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14c]
call fcn.00472130
add esp, 4
push str.config3
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x134]
call fcn.00472130
add esp, 4
push 0x4fa28c
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x11c]
call fcn.00472130
add esp, 4
push dword [ebp - 0x23c]
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x104]
call fcn.00472130
add esp, 4
push 0x4fa284
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xec]
call fcn.00472130
add esp, 4
push str.config4
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd4]
call fcn.00472130
add esp, 4
push 0x4fa28c
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xbc]
call fcn.00472130
add esp, 4
push dword [ebp - 0x240]
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa4]
call fcn.00472130
add esp, 4
push 0x4fa284
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x8c]
call fcn.00472130
add esp, 4
push str.config5
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x74]
call fcn.00472130
add esp, 4
push 0x4fa288
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x5c]
call fcn.00472130
add esp, 4
push 0x4fa284
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x44]
call fcn.00472130
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x46deaf
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x46de94
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433760
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0044e280
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x46dec4
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00433760
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x46deeb
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00433760
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x46df12
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00433760
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x46df3f
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00433760
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp eax, 0x10
jb 0x46df72
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00433760
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
cmp eax, 0x10
jb 0x46dfab
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.00433760
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
cmp eax, 0x10
jb 0x46dfe4
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.00433760
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
cmp eax, 0x10
jb 0x46e01d
inc eax
lea ecx, [ebp - 0xec]
push eax
push dword [ebp - 0xec]
call fcn.00433760
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xd8], 0xf
mov dword [ebp - 0xdc], 0
mov byte [ebp - 0xec], 0
cmp eax, 0x10
jb 0x46e056
inc eax
lea ecx, [ebp - 0x104]
push eax
push dword [ebp - 0x104]
call fcn.00433760
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xf0], 0xf
mov dword [ebp - 0xf4], 0
mov byte [ebp - 0x104], 0
cmp eax, 0x10
jb 0x46e08f
inc eax
lea ecx, [ebp - 0x11c]
push eax
push dword [ebp - 0x11c]
call fcn.00433760
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x108], 0xf
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x11c], 0
cmp eax, 0x10
jb 0x46e0c8
inc eax
lea ecx, [ebp - 0x134]
push eax
push dword [ebp - 0x134]
call fcn.00433760
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
cmp eax, 0x10
jb 0x46e101
inc eax
lea ecx, [ebp - 0x14c]
push eax
push dword [ebp - 0x14c]
call fcn.00433760
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
cmp eax, 0x10
jb 0x46e13a
inc eax
lea ecx, [ebp - 0x164]
push eax
push dword [ebp - 0x164]
call fcn.00433760
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x150], 0xf
mov dword [ebp - 0x154], 0
mov byte [ebp - 0x164], 0
cmp eax, 0x10
jb 0x46e173
inc eax
lea ecx, [ebp - 0x17c]
push eax
push dword [ebp - 0x17c]
call fcn.00433760
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x168], 0xf
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x17c], 0
cmp eax, 0x10
jb 0x46e1ac
inc eax
lea ecx, [ebp - 0x194]
push eax
push dword [ebp - 0x194]
call fcn.00433760
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x180], 0xf
mov dword [ebp - 0x184], 0
mov byte [ebp - 0x194], 0
cmp eax, 0x10
jb 0x46e1e5
inc eax
lea ecx, [ebp - 0x1ac]
push eax
push dword [ebp - 0x1ac]
call fcn.00433760
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x198], 0xf
mov dword [ebp - 0x19c], 0
mov byte [ebp - 0x1ac], 0
cmp eax, 0x10
jb 0x46e21e
inc eax
lea ecx, [ebp - 0x1c4]
push eax
push dword [ebp - 0x1c4]
call fcn.00433760
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1b0], 0xf
mov dword [ebp - 0x1b4], 0
mov byte [ebp - 0x1c4], 0
cmp eax, 0x10
jb 0x46e257
inc eax
lea ecx, [ebp - 0x1dc]
push eax
push dword [ebp - 0x1dc]
call fcn.00433760
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1c8], 0xf
mov dword [ebp - 0x1cc], 0
mov byte [ebp - 0x1dc], 0
cmp eax, 0x10
jb 0x46e290
inc eax
lea ecx, [ebp - 0x1f4]
push eax
push dword [ebp - 0x1f4]
call fcn.00433760
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1e0], 0xf
mov dword [ebp - 0x1e4], 0
mov byte [ebp - 0x1f4], 0
cmp eax, 0x10
jb 0x46e2c9
inc eax
lea ecx, [ebp - 0x20c]
push eax
push dword [ebp - 0x20c]
call fcn.00433760
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x1f8], 0xf
mov dword [ebp - 0x1fc], 0
mov byte [ebp - 0x20c], 0
cmp eax, 0x10
jb 0x46e302
inc eax
lea ecx, [ebp - 0x224]
push eax
push dword [ebp - 0x224]
call fcn.00433760
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x244]
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x244], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x225], 0
je 0x46e346
cmp esi, 0xffffffff
je 0x46e346
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004a5802
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x46e364
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c