Function at 0x100202a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009d58e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xb4], ebx
mov ebp, dword [ecx + 0x68]
je 0x100202f4
mov ebp, eax
mov esi, vtable.GameMgr::GMBuffer_char_.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0xb4], 1
mov eax, dword [ebp]
mov edx, dword [eax + 0x84]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call edx
test al, al
jne 0x10020361
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x14], esi
je 0x10020340
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xd4], 8
jb 0x1002035a
mov eax, dword [esp + 0xc0]
push eax
call fcn.10079508
add esp, 4
xor al, al
jmp 0x10020858
mov edi, dword [esp + 0x18]
test edi, 0xfffffff8
jbe 0x100203a9
mov ecx, edi
and ecx, 7
mov esi, 8
sub esi, ecx
cmp esi, 8
je 0x100203a9
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], eax
call fcn.10002cf0
xor eax, eax
cmp esi, ebx
jbe 0x100203a5
mov edx, dword [esp + 0x1c]
add edx, eax
add eax, 1
cmp eax, esi
mov byte [edx + edi], bl
jb 0x10020395
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
sub edi, 0x2b
mov dword [esp + 0x8d], ecx
mov dword [esp + 0x91], ecx
mov dword [esp + 0x95], ecx
mov word [esp + 0x99], cx
mov byte [esp + 0x9b], cl
mov ecx, edi
add eax, 0x2b
lea esi, [esp + 0x8c]
lea edi, [esp + 0x54]
mov byte [esp + 0x8c], bl
call fcn.1001e380
mov byte [esp + 0xb4], 2
push 3
mov edi, 7
push 0x100a9cd8
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
call fcn.10004560
mov byte [esp + 0xb4], 3
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, ebp
call edx
mov byte [esp + 0xb4], 2
cmp dword [esp + 0xa4], 8
mov esi, eax
jb 0x10020466
mov eax, dword [esp + 0x90]
push eax
call fcn.10079508
add esp, 4
cmp esi, ebx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jne 0x100204e3
cmp dword [esp + 0x6c], 8
jb 0x10020494
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov dword [esp + 0x14], vtable.GameMgr::GMBuffer_char_.0
je 0x100204be
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xd4], 8
jb 0x1002035a
mov edx, dword [esp + 0xc0]
push edx
call fcn.10079508
add esp, 4
xor al, al
jmp 0x10020858
mov eax, dword [ebp]
mov edx, dword [eax + 0x70]
lea ecx, [esp + 0x54]
push ecx
push esi
mov ecx, ebp
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10020508
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ebp]
mov edx, dword [eax + 0x84]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call edx
mov esi, dword [esp + 0x18]
test esi, 0xfffffff8
jbe 0x10020563
mov eax, esi
and eax, edi
mov edi, 8
sub edi, eax
cmp edi, 8
je 0x10020563
lea ebp, [esi + edi]
push ebp
lea ecx, [esp + 0x18]
call fcn.10002cf0
xor eax, eax
cmp edi, ebx
jbe 0x10020561
mov ecx, dword [esp + 0x1c]
add ecx, eax
add eax, 1
cmp eax, edi
mov byte [ecx + esi], bl
jb 0x10020551
mov esi, ebp
lea eax, [esp + 0x34]
call fcn.10035860
mov edi, vtable.GameMgr::GMBuffer_char_.0
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.10002cf0
mov byte [esp + 0xb4], 4
mov ebp, dword [esp + 0x94]
mov edx, dword [esp + 0x1c]
push 1
push ebp
push edx
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.100358e0
test al, al
jne 0x1002061c
cmp ebp, ebx
je 0x100205ce
push ebp
call fcn.10079647
add esp, 4
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x100205e6
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov dword [esp + 0x14], edi
je 0x10020610
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xd4], esi
jmp 0x100204c6
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.10010aa0
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0xc0], 5
call fcn.10009080
add esp, 0xc
test al, al
jne 0x10020654
lea eax, [esp + 0x70]
push eax
call fcn.100091c0
add esp, 4
mov dword [esp + 0x24], vtable.GameMgr::GMFile.0
mov dword [esp + 0x28], 0xffffffff
push 2
push 0x40000000
mov ebx, 2
lea ecx, [esp + 0xc4]
lea edi, [esp + 0x2c]
mov byte [esp + 0xbc], 6
call fcn.100296f0
test al, al
jne 0x10020747
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0x24], vtable.GameMgr::GMFile.0
je 0x100206b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100206b4
mov dword [esp + 0x28], 0xffffffff
mov ebx, 8
cmp dword [esp + 0x88], ebx
mov dword [esp + 0x24], vtable.GameMgr::GMBaseFile.0
jb 0x100206d7
mov ecx, dword [esp + 0x74]
push ecx
call fcn.10079508
add esp, 4
xor esi, esi
cmp ebp, esi
mov edi, 7
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], esi
mov word [esp + 0x74], si
je 0x100206fe
push ebp
call fcn.10079647
add esp, 4
cmp dword [esp + 0x6c], ebx
jb 0x10020711
mov edx, dword [esp + 0x58]
push edx
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
mov dword [esp + 0x14], vtable.GameMgr::GMBuffer_char_.0
je 0x1002073b
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x1c], esi
cmp dword [esp + 0xd4], ebx
jmp 0x10020348
xor edi, edi
cmp ebp, edi
je 0x10020773
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x10020773
push edi
lea ecx, [esp + 0x34]
push ecx
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10020773
cmp esi, dword [esp + 0x30]
je 0x1002081a
lea esi, [esp + 0x24]
call fcn.100296c0
mov ebx, 8
cmp dword [esp + 0x88], ebx
jb 0x10020797
mov edx, dword [esp + 0x74]
push edx
call fcn.10079508
add esp, 4
cmp ebp, edi
mov esi, 7
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
je 0x100207bc
push ebp
call fcn.10079647
add esp, 4
cmp dword [esp + 0x6c], ebx
jb 0x100207cf
mov eax, dword [esp + 0x58]
push eax
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
mov dword [esp + 0x14], vtable.GameMgr::GMBuffer_char_.0
je 0x100207f9
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x1c], edi
cmp dword [esp + 0xd4], ebx
jb 0x1002035a
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.10079508
add esp, 4
xor al, al
jmp 0x10020858
lea esi, [esp + 0x24]
call fcn.100296c0
lea ecx, [esp + 0x70]
call fcn.10008190
lea ecx, [esp + 0x8c]
call fcn.10002d70
lea ecx, [esp + 0x54]
call fcn.10008190
lea ecx, [esp + 0x14]
call fcn.10002d70
lea ecx, [esp + 0xbc]
call fcn.10008190
mov al, 1
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1007a1bc
add esp, 0xa4
ret 0x20