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

Disassembly:
push 0x234
mov eax, 0x602bf8
call fcn.004d1a03
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 - 0x234], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x221], bl
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x4b7b5a
push esi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x4b7b7a
cmp dword [ebp - 0x228], ebx
je 0x4b7b9a
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push edi
mov byte [ebp - 0x221], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
push 0x627500
push 0x21
call fcn.005ad311
mov edi, eax
mov dword [ebp - 0x230], edi
pop ecx
pop ecx
test edi, edi
jne 0x4b7bc0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4b7eff
push 0x21
push ebx
push edi
call fcn.0056c1d0
add esp, 0xc
mov dword [ebp - 0x22c], edi
movzx eax, byte [ebx + 0x680004]
push eax
push str._02x
push 2
push 3
push edi
call fcn.0042a370
add esp, 0x14
add edi, 2
inc ebx
cmp ebx, 0x10
jb 0x4b7bd2
mov edi, dword [ebp - 0x230]
xor eax, eax
mov byte [edi + 0x20], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
push str._Profile_
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x220]
call fcn.0048d470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
mov edx, eax
mov dword [esp], 0x65211c
call fcn.0048d7f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
mov edx, eax
mov dword [esp], str.config1
call fcn.0048d7f0
mov ebx, 0x654158
mov byte [ebp - 4], 3
push ebx
mov edx, eax
lea ecx, [ebp - 0x1d8]
call fcn.0048d7f0
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c0]
call fcn.0048d7f0
push 0x65211c
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1a8]
call fcn.0048d7f0
push str.config2
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x190]
call fcn.0048d7f0
push ebx
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x178]
call fcn.0048d7f0
push dword [ebp - 0x234]
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x160]
call fcn.0048d7f0
push 0x65211c
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x148]
call fcn.0048d7f0
push str.config3
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x130]
call fcn.0048d7f0
push ebx
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x118]
call fcn.0048d7f0
mov byte [ebp - 4], 0xc
push dword [ebp - 0x238]
mov edx, eax
lea ecx, [ebp - 0x100]
call fcn.0048d7f0
push 0x65211c
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe8]
call fcn.0048d7f0
push str.config4
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.0048d7f0
push ebx
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb8]
call fcn.0048d7f0
push dword [ebp - 0x23c]
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
call fcn.0048d7f0
mov ebx, 0x65211c
mov byte [ebp - 4], 0x11
push ebx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.0048d7f0
add esp, 0x40
push str.config5
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
call fcn.0048d7f0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x58]
mov edx, eax
mov dword [esp], 0x654154
call fcn.0048d7f0
push ebx
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.0048d7f0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d2d0
lea ecx, [ebp - 0x40]
call fcn.0040b640
lea ecx, [ebp - 0x58]
call fcn.0040b640
lea ecx, [ebp - 0x70]
call fcn.0040b640
lea ecx, [ebp - 0x88]
call fcn.0040b640
lea ecx, [ebp - 0xa0]
call fcn.0040b640
lea ecx, [ebp - 0xb8]
call fcn.0040b640
lea ecx, [ebp - 0xd0]
call fcn.0040b640
lea ecx, [ebp - 0xe8]
call fcn.0040b640
lea ecx, [ebp - 0x100]
call fcn.0040b640
lea ecx, [ebp - 0x118]
call fcn.0040b640
lea ecx, [ebp - 0x130]
call fcn.0040b640
lea ecx, [ebp - 0x148]
call fcn.0040b640
lea ecx, [ebp - 0x160]
call fcn.0040b640
lea ecx, [ebp - 0x178]
call fcn.0040b640
lea ecx, [ebp - 0x190]
call fcn.0040b640
lea ecx, [ebp - 0x1a8]
call fcn.0040b640
lea ecx, [ebp - 0x1c0]
call fcn.0040b640
lea ecx, [ebp - 0x1d8]
call fcn.0040b640
lea ecx, [ebp - 0x1f0]
call fcn.0040b640
lea ecx, [ebp - 0x208]
call fcn.0040b640
lea ecx, [ebp - 0x220]
call fcn.0040b640
and dword [ebp - 0x240], 0
lea ecx, [ebp - 0x240]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp byte [ebp - 0x221], 0
je 0x4b7ef0
cmp esi, 0xffffffff
je 0x4b7ef0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call fcn.0042a390
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040b640
call fcn.004d19ad
ret 0x1c