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

Disassembly:
push 0x238
mov eax, 0x66d79d
call fcn.00621369
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
push ebx
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x225], bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45b59f
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x45b5bf
cmp dword [ebp - 0x22c], ebx
je 0x45b5df
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push edi
mov byte [ebp - 0x225], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0x714178
push 0x21
call fcn.006201fb
mov edi, eax
mov dword [ebp - 0x234], edi
pop ecx
pop ecx
test edi, edi
jne 0x45b605
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45b988
push 0x21
push ebx
push edi
call fcn.00638f20
add esp, 0xc
mov dword [ebp - 0x230], edi
movzx eax, byte [ebx + section..QMGuid]
push eax
push 0x6d2974
push 2
push 3
push edi
call fcn.0045aeaa
add esp, 0x14
add edi, 2
inc ebx
cmp ebx, 0x10
jb 0x45b617
mov edi, dword [ebp - 0x234]
xor eax, eax
mov byte [edi + 0x20], al
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push str._Profile_
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0045c9f8
push 0x6cda10
push eax
lea eax, [ebp - 0x20c]
mov byte [ebp - 4], 1
push eax
call fcn.004238ab
push str.config1
push eax
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 2
push eax
call fcn.004238ab
mov ebx, 0x6d2980
mov byte [ebp - 4], 3
push ebx
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.004238ab
push edi
push eax
lea eax, [ebp - 0x1c4]
mov byte [ebp - 4], 4
push eax
call fcn.004238ab
push 0x6cda10
push eax
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 5
push eax
call fcn.004238ab
add esp, 0x48
push str.config2
push eax
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 6
push eax
call fcn.004238ab
push ebx
push eax
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 7
push eax
call fcn.004238ab
push dword [ebp - 0x238]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.004238ab
push 0x6cda10
push eax
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 9
push eax
call fcn.004238ab
mov byte [ebp - 4], 0xa
push str.config3
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004238ab
push ebx
push eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0xb
push eax
call fcn.004238ab
add esp, 0x48
push dword [ebp - 0x23c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004238ab
push 0x6cda10
push eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0xd
push eax
call fcn.004238ab
push str.config4
push eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0xe
push eax
call fcn.004238ab
push ebx
push eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xf
push eax
call fcn.004238ab
push dword [ebp - 0x240]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004238ab
mov ebx, 0x6cda10
mov byte [ebp - 4], 0x11
push ebx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004238ab
add esp, 0x48
push str.config5
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x12
push eax
call fcn.004238ab
push 0x6d297c
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
push eax
call fcn.004238ab
push ebx
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x14
push eax
call fcn.004238ab
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.00428aea
xor ebx, ebx
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0xd4]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0xec]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x104]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x11c]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x14c]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x164]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x17c]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x194]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x1ac]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x1c4]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x1dc]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x1f4]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x20c]
call fcn.0042961d
push ebx
push 1
lea ecx, [ebp - 0x224]
call fcn.0042961d
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x244]
push ebx
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x244], ebx
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x225], bl
je 0x45b976
cmp esi, 0xffffffff
je 0x45b976
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.006201f6
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042961d
call fcn.00621313
ret 0x1c