Function at 0x4d4b41
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x30]
push str.CIniFileParseImpl::CommitIniFile__m_bUnicode_d
call fcn.004d64d1
cmp dword [esi + 0x30], 0
pop ecx
pop ecx
mov ecx, esi
pop esi
jne 0x4d4d4a
jmp fcn.004d4b65
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x38], edi
cmp dword [edi + 8], 1
je 0x4d4d6e
xor eax, eax
inc eax
jmp 0x4d4fa3
push esi
lea esi, [edi + 0xc]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d4d7c
mov eax, dword [esi]
push ebx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d4dc1
cmp dword [esi + 0x14], 8
jb 0x4d4da5
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.gpc__iniFile__failed_to_open_ini_file_for_write__file___s__GetLastError___d
call fcn.004d64b4
add esp, 0xc
xor eax, eax
jmp 0x4d4fa1
xor esi, esi
mov dword [ebp - 0x24], 0xfeff
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], ax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0xc], 7
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp esi, eax
je 0x4d4f8f
push 0x5b
lea ecx, [ebp - 0x20]
call fcn.004d49a2
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x4d4e14
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004d28b4
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4d4e30
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041d7bf
lea ecx, [ebp - 0x50]
call fcn.00417a51
push 0x5d
lea ecx, [ebp - 0x20]
call int.0042dcc9
push 0xd
lea ecx, [ebp - 0x20]
call int.0042dcc9
push 0xa
lea ecx, [ebp - 0x20]
call int.0042dcc9
push 2
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 8]
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x30]
add esi, 0x28
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004d4867
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x4d4f70
add esi, 0x18
xor edi, edi
cmp dword [esi - 4], 0x10
lea eax, [esi - 0x18]
jb 0x4d4ebd
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004d28b4
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
call fcn.0041cf57
lea ecx, [ebp - 0x50]
call fcn.00417a51
push 0x3d
lea ecx, [ebp - 0x20]
call int.0042dcc9
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4d4ef4
mov eax, dword [esi]
push 0xfde9
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004d28b4
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4d4f10
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041d7bf
lea ecx, [ebp - 0x50]
call fcn.00417a51
push 0xd
lea ecx, [ebp - 0x20]
call int.0042dcc9
push 0xa
lea ecx, [ebp - 0x20]
call int.0042dcc9
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 8]
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 0x30
lea eax, [esi - 0x18]
cmp eax, dword [ebp - 0x2c]
jne 0x4d4eb2
lea ecx, [ebp - 0x30]
call fcn.004d6c02
lea ecx, [ebp - 0x34]
call fcn.004d49c9
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
cmp esi, dword [eax + 0x28]
jne 0x4d4dff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00417a51
xor eax, eax
inc eax
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0056ac5f
leave
ret