Function at 0x4c6b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 0x54], 0x1a
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x1c], 0xffffff9c
mov dword [ebp - 0x40], 0xffffff9c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x19c]
push ecx
call fcn.006b6b40
add esp, 8
lea edx, [ebp - 0x19c]
mov dword [ebp - 0x10], edx
jmp 0x4c6b9c
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x4c6ba8
jmp 0x4c6b93
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x2e
je 0x4c6bbe
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4c6ba8
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x11d7650], 0
je 0x4c6be1
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0x70
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4c6bf0
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x69
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov byte [edx], 0x61
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0x6d
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x800
push 0
push 0x28002e8
call fcn.0067d630
add esp, 0xc
push 0x800
push 0
push 0x2800ae8
call fcn.0067d630
add esp, 0xc
push 1
lea edx, [ebp - 0x19c]
push edx
call fcn.00401390
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffff9a
je 0x4c6c77
mov eax, dword [ebp - 0x40]
push eax
call fcn.0065f9d0
add esp, 4
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00401380
add esp, 4
push 1
lea edx, [ebp - 0x19c]
push edx
call fcn.00401390
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffff9a
je 0x4c7362
push 4
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004016d0
add esp, 0xc
call fcn.0065ac40
mov edx, dword [0x25eca60]
lea eax, [edx*8 + 0x804]
mov dword [ebp - 0x58], eax
push 4
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004016d0
add esp, 0xc
push 0xe
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.0067d630
add esp, 0xc
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx*2 + 0x76a060]
test edx, edx
je 0x4c6d55
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax*2 + 0x76a060]
mov dx, word [ebp - 0x14]
mov word [ecx*2 + 0x2800ae8], dx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dx, word [ecx*2 + 0x76a060]
mov word [eax*2 + 0x28002e8], dx
mov eax, dword [ebp - 0x14]
add eax, 0x640
push eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx*2 + 0x76a060]
push edx
call fcn.0065f170
add esp, 8
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x4c6ce8
push 0x8000
call fcn.00401a90
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
jmp 0x4c6d77
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x80
jge 0x4c70cb
mov dword [ebp - 8], 0
jmp 0x4c6d96
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80
jge 0x4c70c6
cmp dword [ebp - 4], 0x80
jge 0x4c709f
cmp dword [ebp - 8], 0x80
jge 0x4c709f
cmp dword [0x11d7650], 0
je 0x4c6ff6
imul ecx, dword [ebp - 4], 0x600
imul edx, dword [ebp - 8], 0xc
movzx eax, word [ecx + edx + 0x22ef26c]
push eax
call fcn.0065e830
add esp, 4
mov word [ebp - 0x20], ax
imul ecx, dword [ebp - 4], 0x600
imul edx, dword [ebp - 8], 0xc
movzx eax, word [ecx + edx + 0x22ef26c]
and eax, 0x3ff
mov word [ebp - 0xc], ax
imul ecx, dword [ebp - 4], 0x600
imul edx, dword [ebp - 8], 0xc
movzx eax, word [ecx + edx + 0x22ef26c]
and eax, 0xffff3fff
imul ecx, dword [ebp - 8], 0xc
imul edx, dword [ebp - 4], 0x600
mov word [edx + ecx + 0x22ef26c], ax
movzx eax, word [ebp - 0xc]
movzx ecx, word [eax*2 + 0x2800ae8]
test ecx, ecx
je 0x4c6e74
imul edx, dword [ebp - 4], 0x600
imul eax, dword [ebp - 8], 0xc
movzx ecx, word [edx + eax + 0x22ef26c]
and ecx, 0xfffffc00
movzx edx, word [ebp - 0xc]
movzx eax, word [edx*2 + 0x2800ae8]
or ecx, eax
movzx edx, word [ebp - 0x20]
or ecx, edx
mov word [ebp - 0x38], cx
jmp 0x4c6ed9
imul eax, dword [ebp - 4], 0x600
imul ecx, dword [ebp - 8], 0xc
movzx edx, word [eax + ecx + 0x22ef26c]
and edx, 0xfffffc00
or edx, dword [ebp - 0x14]
movzx eax, word [ebp - 0x20]
or edx, eax
mov word [ebp - 0x38], dx
mov ecx, dword [ebp - 0x14]
mov dx, word [ebp - 0xc]
mov word [ecx*2 + 0x28002e8], dx
movzx eax, word [ebp - 0xc]
mov cx, word [ebp - 0x14]
mov word [eax*2 + 0x2800ae8], cx
mov edx, dword [ebp - 0x14]
add edx, 0x640
push edx
movzx eax, word [ebp - 0xc]
push eax
call fcn.0065f170
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
shl edx, 8
mov eax, dword [ebp - 8]
movzx ecx, word [edx + eax*2 + 0x2323268]
push ecx
call fcn.0065e830
add esp, 4
mov word [ebp - 0x20], ax
mov edx, dword [ebp - 4]
shl edx, 8
mov eax, dword [ebp - 8]
movzx ecx, word [edx + eax*2 + 0x2323268]
and ecx, 0x3ff
mov word [ebp - 0xc], cx
mov edx, dword [ebp - 4]
shl edx, 8
mov eax, dword [ebp - 8]
movzx ecx, word [edx + eax*2 + 0x2323268]
and ecx, 0xffff3fff
mov edx, dword [ebp - 4]
shl edx, 8
mov eax, dword [ebp - 8]
mov word [edx + eax*2 + 0x2323268], cx
movzx ecx, word [ebp - 0xc]
movzx edx, word [ecx*2 + 0x2800ae8]
test edx, edx
je 0x4c6f87
mov eax, dword [ebp - 4]
shl eax, 8
mov ecx, dword [ebp - 8]
movzx edx, word [eax + ecx*2 + 0x2323268]
and edx, 0xfffffc00
movzx eax, word [ebp - 0xc]
movzx ecx, word [eax*2 + 0x2800ae8]
or edx, ecx
movzx eax, word [ebp - 0x20]
or edx, eax
mov ecx, dword [ebp - 4]
shl ecx, 7
add ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x44]
mov word [eax + ecx*2], dx
jmp 0x4c6ff4
mov ecx, dword [ebp - 4]
shl ecx, 8
mov edx, dword [ebp - 8]
movzx eax, word [ecx + edx*2 + 0x2323268]
and eax, 0xfffffc00
or eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0x20]
or eax, ecx
mov edx, dword [ebp - 4]
shl edx, 7
add edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
mov word [ecx + edx*2], ax
mov edx, dword [ebp - 0x14]
mov ax, word [ebp - 0xc]
mov word [edx*2 + 0x28002e8], ax
movzx ecx, word [ebp - 0xc]
mov dx, word [ebp - 0x14]
mov word [ecx*2 + 0x2800ae8], dx
mov eax, dword [ebp - 0x14]
add eax, 0x640
push eax
movzx ecx, word [ebp - 0xc]
push ecx
call fcn.0065f170
add esp, 8
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4c700d
imul eax, dword [ebp - 4], 0x600
imul ecx, dword [ebp - 8], 0xc
mov dx, word [eax + ecx + 0x22ef26c]
mov word [ebp - 0x38], dx
imul eax, dword [ebp - 4], 0x600
imul ecx, dword [ebp - 8], 0xc
movzx dx, byte [eax + ecx + 0x22ef270]
mov word [ebp - 0x36], dx
imul eax, dword [ebp - 4], 0x600
imul ecx, dword [ebp - 8], 0xc
mov dl, byte [eax + ecx + 0x22ef271]
mov byte [ebp - 0x34], dl
imul eax, dword [ebp - 4], 0x300
add eax, dword [0x25ecd94]
imul ecx, dword [ebp - 8], 6
mov dl, byte [eax + ecx + 5]
mov byte [ebp - 0x33], dl
imul eax, dword [ebp - 4], 0x600
imul ecx, dword [ebp - 8], 0xc
movsx edx, word [eax + ecx + 0x22ef272]
cmp edx, 0xffffffff
jne 0x4c7077
movzx eax, word [ebp - 0x36]
or eax, 0x100
mov word [ebp - 0x36], ax
imul ecx, dword [ebp - 4], 0x600
imul edx, dword [ebp - 8], 0xc
movzx eax, byte [ecx + edx + 0x22ef270]
and eax, 0x40
je 0x4c709d
movzx ecx, word [ebp - 0x36]
or ecx, 0x200
mov word [ebp - 0x36], cx
jmp 0x4c70af
push 6
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.0067d630
add esp, 0xc
push 6
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004016d0
add esp, 0xc
jmp 0x4c6d8d
jmp 0x4c6d6e
cmp dword [0x11d7650], 0
je 0x4c711b
mov dword [ebp - 0x48], 0x8000
push 4
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004016d0
add esp, 0xc
push 0x8000
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004016d0
add esp, 0xc
mov dword [ebp - 0x48], 0x29a
push 4
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004016d0
add esp, 0xc
mov edx, dword [ebp - 0x44]
push edx
call fcn.00401ae0
add esp, 4
xor eax, eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], 0
jmp 0x4c713f
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x7d0
jge 0x4c7174
imul edx, dword [ebp - 0x18], 0x54
add edx, 0x15b1468
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x10]
mov byte [ebp - 0x5c], cl
cmp byte [ebp - 0x5c], 8
je 0x4c7166
jmp 0x4c7172
mov dx, word [ebp - 0x30]
add dx, 1
mov word [ebp - 0x30], dx
jmp 0x4c7136
push 2
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004016d0
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x4c7198
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x7d0
jge 0x4c721d
imul eax, dword [ebp - 0x18], 0x54
add eax, 0x15b1468
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 0x10]
mov byte [ebp - 0x60], dl
cmp byte [ebp - 0x60], 8
je 0x4c71be
jmp 0x4c7218
mov eax, dword [ebp - 0x2c]
movzx cx, byte [eax + 0x10]
mov word [ebp - 0x8c], cx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 0x22]
mov word [ebp - 0x74], ax
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx + 0x18]
mov word [ebp - 0x78], dx
push 0x2c
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004016d0
add esp, 0xc
jmp 0x4c718f
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0065fb40
add esp, 4
push 4
push 0x76a340
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004016d0
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x4c724e
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0xc8
jge 0x4c733f
mov dword [ebp - 0x28], 0
jmp 0x4c726d
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 5
jge 0x4c733a
imul eax, dword [ebp - 0x24], 0x14
mov ecx, dword [ebp - 0x28]
movzx edx, byte [eax + ecx*4 + 0x23de8b8]
shl edx, 6
imul eax, dword [ebp - 0x24], 0x14
mov ecx, dword [ebp - 0x28]
movzx eax, byte [eax + ecx*4 + 0x23de8b9]
add edx, eax
imul ecx, dword [ebp - 0x24], 0x14
mov eax, dword [ebp - 0x28]
movzx ecx, byte [ecx + eax*4 + 0x23de8ba]
lea edx, [edx + ecx*8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x200
jl 0x4c72bf
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax*2 + 0x13da7d8]
sub ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
and edx, 0xff
imul eax, dword [ebp - 0x24], 0xa
add eax, dword [0x2596b8c]
mov ecx, dword [ebp - 0x28]
mov word [eax + ecx*2], dx
imul edx, dword [ebp - 0x24], 0x14
mov eax, dword [ebp - 0x28]
movzx ecx, byte [edx + eax*4 + 0x23de8bb]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x3c]
sar edx, 0xe
and edx, 3
xor edx, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], edx
imul eax, dword [ebp - 0x24], 0xa
add eax, dword [0x2596b8c]
mov ecx, dword [ebp - 0x4c]
shl ecx, 0xe
mov edx, dword [ebp - 0x28]
movzx eax, word [eax + edx*2]
or eax, ecx
imul ecx, dword [ebp - 0x24], 0xa
add ecx, dword [0x2596b8c]
mov edx, dword [ebp - 0x28]
mov word [ecx + edx*2], ax
jmp 0x4c7264
jmp 0x4c7245
push 0x7d0
mov eax, dword [0x2596b8c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004016d0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401380
add esp, 4
push 0x717e54
push str.datagame.ext
call fcn.00690360
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4c73a1
mov eax, dword [ebp - 0x50]
push eax
push 0x1400
push 1
push 0x119ddc8
call fcn.006cf670
add esp, 0x10
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0068fac0
add esp, 4
cmp dword [0x11d7650], 0
je 0x4c73c7
movzx edx, byte [0x76a340]
push edx
call fcn.004c7ca0
add esp, 4
movzx eax, word [ebp - 0x14]
push eax
call fcn.0065bde0
add esp, 4
mov esp, ebp
pop ebp
ret