Function at 0x526b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x46c], ecx
cmp dword [ebp + 8], 0
je 0x526b81
push 0x22
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx + 0x10]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xa8]
call eax
jmp 0x526b9f
push 4
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 0xa8]
call eax
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 0x338]
call eax
mov ecx, dword [ebp - 0x46c]
call fcn.005260a0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ecx + 0x1b8]
mov dword [ebp - 4], eax
call fcn.00459650
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x56e608
lea edx, [ebp - 0x418]
push edx
call dword [0x5582d0]
add esp, 0x14
mov dword [ebp - 0xc], 0
push 0x56e620
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00413174
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x527326
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x450], 0x1bb0
mov ecx, dword [ebp - 0x450]
push ecx
push 0
mov edx, dword [ebp - 0x420]
push edx
call fcn.00416fa0
add esp, 0xc
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 0x114]
call eax
lea ecx, [ebp - 0x438]
push ecx
call dword [0x55813c]
movzx edx, word [ebp - 0x438]
mov eax, dword [ebp - 0x420]
mov dword [eax + 0x20], edx
movzx ecx, word [ebp - 0x436]
mov edx, dword [ebp - 0x420]
mov dword [edx + 0x24], ecx
movzx eax, word [ebp - 0x432]
mov ecx, dword [ebp - 0x420]
mov dword [ecx + 0x28], eax
movzx edx, word [ebp - 0x434]
mov eax, dword [ebp - 0x420]
mov dword [eax + 0x2c], edx
movzx ecx, word [ebp - 0x430]
mov edx, dword [ebp - 0x420]
mov dword [edx + 0x30], ecx
movzx eax, word [ebp - 0x42e]
mov ecx, dword [ebp - 0x420]
mov dword [ecx + 0x34], eax
movzx edx, word [ebp - 0x42c]
mov eax, dword [ebp - 0x420]
mov dword [eax + 0x38], edx
movzx ecx, word [ebp - 0x42a]
mov edx, dword [ebp - 0x420]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x54]
add ecx, 1
mov edx, dword [ebp - 0x420]
mov dword [edx + 0x54], ecx
push str.GAMESTATUS
push 2
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x46c]
call fcn.005265f0
mov edx, dword [ebp - 0xc]
push edx
push 1
push 0x1bb0
mov eax, dword [ebp - 0x420]
push eax
call fcn.0041d70e
add esp, 0x10
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x428]
add ecx, 4
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x454], 0
jmp 0x526dba
mov edx, dword [ebp - 0x454]
add edx, 1
mov dword [ebp - 0x454], edx
cmp dword [ebp - 0x454], 0x3e8
jge 0x526e98
mov eax, dword [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x526e0d
mov ecx, dword [ebp - 0x43c]
add ecx, 1
mov dword [ebp - 0x43c], ecx
jmp 0x526e93
cmp dword [ebp - 0x43c], 0
jle 0x526e67
mov edx, dword [ebp - 0x428]
mov dword [edx], 0
mov eax, dword [ebp - 0x428]
add eax, 4
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x43c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x428]
add eax, 4
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x43c], 0
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x458]
mov dword [edx], eax
mov ecx, dword [ebp - 0x428]
add ecx, 4
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x450]
add edx, 1
mov dword [ebp - 0x450], edx
jmp 0x526dab
cmp dword [ebp - 0x43c], 0
jle 0x526ef2
mov eax, dword [ebp - 0x428]
mov dword [eax], 0
mov ecx, dword [ebp - 0x428]
add ecx, 4
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x43c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x428]
add ecx, 4
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x450]
add edx, 2
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp - 0x450]
shl eax, 2
mov ecx, dword [ebp - 0x440]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x450]
add eax, 1
push eax
push 4
mov ecx, dword [ebp - 0x440]
push ecx
call fcn.0041d70e
add esp, 0x10
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x44c]
add edx, 4
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x450], 0
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x4a0]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x45c], 0
jmp 0x526f8d
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x448]
jge 0x5270cc
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x1d4]
mov eax, dword [ebp - 0x45c]
mov cl, byte [edx + eax]
mov byte [ebp - 0x45d], cl
movsx edx, byte [ebp - 0x45d]
test edx, edx
jne 0x527044
cmp dword [ebp - 0x43c], 0xfe
jge 0x526fe2
mov eax, dword [ebp - 0x43c]
add eax, 1
mov dword [ebp - 0x43c], eax
jmp 0x52703f
mov ecx, dword [ebp - 0x43c]
add ecx, 1
mov dword [ebp - 0x43c], ecx
mov edx, dword [ebp - 0x44c]
mov byte [edx], 0
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dl, byte [ebp - 0x43c]
mov byte [ecx], dl
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x43c], 0
jmp 0x5270c7
cmp dword [ebp - 0x43c], 0
jle 0x52709b
mov edx, dword [ebp - 0x44c]
mov byte [edx], 0
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dl, byte [ebp - 0x43c]
mov byte [ecx], dl
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x43c], 0
mov edx, dword [ebp - 0x44c]
mov al, byte [ebp - 0x45d]
mov byte [edx], al
mov ecx, dword [ebp - 0x44c]
add ecx, 1
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x450]
add edx, 1
mov dword [ebp - 0x450], edx
jmp 0x526f7e
cmp dword [ebp - 0x43c], 0
jle 0x527123
mov eax, dword [ebp - 0x44c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x44c]
add ecx, 1
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x44c]
mov al, byte [ebp - 0x43c]
mov byte [edx], al
mov ecx, dword [ebp - 0x44c]
add ecx, 1
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x450]
add edx, 2
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x450]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x450]
add eax, 4
push eax
push 1
mov ecx, dword [ebp - 0x424]
push ecx
call fcn.0041d70e
add esp, 0x10
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x450], 0
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x41c]
add edx, 4
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x4a4]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x464], 0
jmp 0x5271bb
mov edx, dword [ebp - 0x464]
add edx, 1
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
cmp eax, dword [ebp - 0x448]
jge 0x527290
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x1d8]
mov eax, dword [ebp - 0x464]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x468], ecx
cmp dword [ebp - 0x468], 0xffffffff
jne 0x527205
mov edx, dword [ebp - 0x43c]
add edx, 1
mov dword [ebp - 0x43c], edx
jmp 0x52728b
cmp dword [ebp - 0x43c], 0
jle 0x52725f
mov eax, dword [ebp - 0x41c]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x41c]
add ecx, 4
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x43c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x41c]
add ecx, 4
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x450]
add edx, 2
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x468]
mov dword [eax], ecx
mov edx, dword [ebp - 0x41c]
add edx, 4
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x450]
add eax, 1
mov dword [ebp - 0x450], eax
jmp 0x5271ac
cmp dword [ebp - 0x43c], 0
jle 0x5272ea
mov ecx, dword [ebp - 0x41c]
mov dword [ecx], 0xffffffff
mov edx, dword [ebp - 0x41c]
add edx, 4
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x43c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x41c]
add edx, 4
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x450]
add eax, 2
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x43c], 0
mov ecx, dword [ebp - 0x450]
shl ecx, 2
mov edx, dword [ebp - 0x444]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 1
push ecx
push 4
mov edx, dword [ebp - 0x444]
push edx
call fcn.0041d70e
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041329a
add esp, 4
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004130a1
mov esp, ebp
pop ebp
ret 4