Function at 0x52b3a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x58605c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x46c], ecx
cmp dword [ebp + 8], 0
je 0x52b3e1
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 0x52b3ff
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 + 0x33c]
call eax
mov ecx, dword [ebp - 0x46c]
call fcn.0052a900
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.0045c8b0
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 0x5748c4
lea edx, [ebp - 0x418]
push edx
call dword [0x55e2d0]
add esp, 0x14
mov dword [ebp - 0xc], 0
push 0x5748dc
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.004132d4
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x52bb86
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.00417100
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 [0x55e13c]
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.0052ae50
mov edx, dword [ebp - 0xc]
push edx
push 1
push 0x1bb0
mov eax, dword [ebp - 0x420]
push eax
call fcn.0041d88c
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 0x52b61a
mov edx, dword [ebp - 0x454]
add edx, 1
mov dword [ebp - 0x454], edx
cmp dword [ebp - 0x454], 0x3e8
jge 0x52b6f8
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 0x52b66d
mov ecx, dword [ebp - 0x43c]
add ecx, 1
mov dword [ebp - 0x43c], ecx
jmp 0x52b6f3
cmp dword [ebp - 0x43c], 0
jle 0x52b6c7
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 0x52b60b
cmp dword [ebp - 0x43c], 0
jle 0x52b752
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.0041d88c
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 0x52b7ed
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x448]
jge 0x52b92c
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 0x52b8a4
cmp dword [ebp - 0x43c], 0xfe
jge 0x52b842
mov eax, dword [ebp - 0x43c]
add eax, 1
mov dword [ebp - 0x43c], eax
jmp 0x52b89f
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 0x52b927
cmp dword [ebp - 0x43c], 0
jle 0x52b8fb
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 0x52b7de
cmp dword [ebp - 0x43c], 0
jle 0x52b983
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.0041d88c
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 0x52ba1b
mov edx, dword [ebp - 0x464]
add edx, 1
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
cmp eax, dword [ebp - 0x448]
jge 0x52baf0
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 0x52ba65
mov edx, dword [ebp - 0x43c]
add edx, 1
mov dword [ebp - 0x43c], edx
jmp 0x52baeb
cmp dword [ebp - 0x43c], 0
jle 0x52babf
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 0x52ba0c
cmp dword [ebp - 0x43c], 0
jle 0x52bb4a
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.0041d88c
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.004133fa
add esp, 4
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413201
mov esp, ebp
pop ebp
ret 4