Function at 0x431c80
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x661850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
push str.Wed_Sep_30_22:04:02_2015
push 0x2d62
push str.CGameProcess::SaveChatFile
push str.GameProcessGameProc.cpp
lea ecx, [ebp - 0xd]
call fcn.004024e0
mov dword [ebp - 4], 0
movsx eax, byte [0x69dcf0]
test eax, eax
je 0x431cf0
mov ecx, dword [ebp - 0x24c]
movsx edx, byte [ecx + 0xfb110]
test edx, edx
jne 0x431d11
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov al, byte [ebp - 0x245]
jmp 0x431ffa
push 0x104
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.005454d0
add esp, 0xc
push 0x69df00
push 0x69dcf0
push str..king_saved_
lea ecx, [ebp - 0x11c]
push ecx
call fcn.005456a9
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
jne 0x431db4
push 0
push 0x5783fc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x431db4
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x431fde
push 2
push 0
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x24c]
add ecx, 0x42738
call fcn.00515120
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jle 0x431fb3
mov dword [ebp - 0x130], 0x574f18
push 0
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call fcn.00545a90
add esp, 4
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 0x23c], 0
push 0x103
push 0
lea eax, [ebp - 0x23b]
push eax
call fcn.005454d0
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00547460
add esp, 4
push 0x57898c
lea edx, [ebp - 0x23c]
push edx
call fcn.00545760
add esp, 8
lea eax, [ebp - 0x23c]
push eax
call fcn.00545a90
add esp, 4
lea ecx, [ebp + eax - 0x23c]
push ecx
call fcn.0054738c
add esp, 4
push 0
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.00545a90
add esp, 4
push eax
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00545a90
add esp, 4
push eax
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x24c]
add ecx, 0x42738
call fcn.0049ebd0
mov dword [ebp - 0x240], 0
jmp 0x431f14
mov ecx, dword [ebp - 0x240]
add ecx, 1
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
cmp edx, dword [ebp - 0x128]
jge 0x431fb3
mov ecx, dword [ebp - 0x24c]
add ecx, 0x42738
call fcn.004edfb0
mov dword [ebp - 0x244], eax
push 0
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 8
push ecx
call fcn.00545a90
add esp, 4
push eax
mov edx, dword [ebp - 0x244]
add edx, 8
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call fcn.00545a90
add esp, 4
push eax
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x24c]
add ecx, 0x42738
call fcn.00437ac0
jmp 0x431f05
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x246], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov al, byte [ebp - 0x246]
jmp 0x431ffa
mov byte [ebp - 0x247], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov al, byte [ebp - 0x247]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054514c
mov esp, ebp
pop ebp
ret