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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563cbc
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
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 - 0x138], ecx
push str.Wed_Sep_30_22:04:02_2015
push 0x2ce2
push str.CGameProcess::SaveWhisperName
push str.GameProcessGameProc.cpp
lea ecx, [ebp - 0xd]
call fcn.004024e0
mov dword [ebp - 4], 0
movsx eax, byte [0x69dcf0]
test eax, eax
je 0x4316d0
mov ecx, dword [ebp - 0x138]
movsx edx, byte [ecx + 0xfb110]
test edx, edx
jne 0x4316f1
mov byte [ebp - 0x131], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov al, byte [ebp - 0x131]
jmp 0x4318fb
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 2
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 0x431794
push 0
push 0x5783fc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x431794
push 0
push 0x80
push 2
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 0x4318df
mov dword [ebp - 0x128], 0x57892c
push 0
lea ecx, [ebp - 0x12c]
push ecx
push 8
push 0x578920
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x130], 0
jmp 0x4317e3
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xa
jge 0x4318b4
mov ecx, dword [ebp - 0x130]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x138]
movsx eax, byte [edx + ecx + 0x1119bc]
test eax, eax
je 0x4318af
push 0
lea ecx, [ebp - 0x12c]
push ecx
push 2
push 0x57891c
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]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x138]
lea eax, [edx + ecx + 0x1119bc]
push eax
call fcn.00545a90
add esp, 4
push eax
mov ecx, dword [ebp - 0x130]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x138]
lea eax, [edx + ecx + 0x1119bc]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.00545a90
add esp, 4
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4317d4
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x132], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov al, byte [ebp - 0x132]
jmp 0x4318fb
mov byte [ebp - 0x133], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov al, byte [ebp - 0x133]
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