Function at 0x558e20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a763b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x2c], ebp
cmp ebp, 0xffffffff
jne 0x558e80
xor eax, eax
jmp 0x559072
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
push esi
push ebp
call edi
test al, al
jne 0x558eab
push 0
push 0x97
push str..TileManager.cpp
call fcn.00527110
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea ebx, [esi + 4]
push ebx
push ebp
call edi
test al, al
jne 0x558ed3
push 0
push 0x99
push str..TileManager.cpp
call fcn.00527110
add esp, 0xc
mov eax, dword [ebx]
imul eax, dword [esi]
xor ecx, ecx
mov edx, 0x3c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00599644
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
imul eax, dword [esi]
xor ecx, ecx
xor ebp, ebp
mov edx, 2
mul edx
seto cl
mov dword [esi + 8], ebp
neg ecx
or ecx, eax
push ecx
call fcn.00599644
mov ecx, dword [esi + 4]
imul ecx, dword [esi]
mov edx, dword [esp + 0x34]
add esp, 8
push ebp
mov ebx, eax
lea eax, [esp + 0x18]
push eax
add ecx, ecx
push ecx
push ebx
push edx
call edi
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x558f7d
xor edx, edx
cmp dword [esi], edx
jbe 0x558f77
lea ebx, [ebx]
mov eax, dword [esi]
imul eax, edi
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 0xc]
lea eax, [eax + ecx*4]
test eax, eax
je 0x558f72
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
movzx ecx, word [ebx + ebp*2]
inc ebp
mov word [eax], cx
test cl, cl
jne 0x558f72
cmp byte [eax + 1], cl
jne 0x558f72
inc dword [esi + 8]
inc edx
cmp edx, dword [esi]
jb 0x558f40
inc edi
cmp edi, dword [esi + 4]
jb 0x558f34
push 0x18
call fcn.00599902
add esp, 4
mov dword [esp + 0x18], eax
xor edi, edi
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x558fa2
mov ecx, dword [esi + 8]
push ecx
mov ecx, eax
call fcn.00558d90
jmp 0x558fa4
xor eax, eax
mov dword [esi + 0x7c], eax
cmp dword [esi + 4], edi
jbe 0x559062
xor edx, edx
cmp dword [esi], edx
jbe 0x559058
mov eax, dword [esi]
imul eax, edi
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 0xc]
lea ebp, [eax + ecx*4]
test ebp, ebp
je 0x55904f
cmp byte [ebp], 0
jne 0x55904f
cmp byte [ebp + 1], 0
jne 0x55904f
xor ebx, ebx
xor eax, eax
test ebx, ebx
jne 0x558ffb
lea ecx, [edi - 1]
cmp edx, dword [esi]
jae 0x559043
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x559043
imul eax, ecx
add eax, edx
jmp 0x559027
cmp ebx, 1
jne 0x559005
lea ecx, [edi + 1]
jmp 0x558fe9
cmp ebx, 2
jne 0x55900f
lea ecx, [edx - 1]
jmp 0x559017
cmp ebx, 3
jne 0x559045
lea ecx, [edx + 1]
cmp ecx, dword [esi]
jae 0x559043
mov eax, dword [esi + 4]
cmp edi, eax
jae 0x559043
imul eax, edi
add eax, ecx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 0xc]
lea eax, [eax + ecx*4]
test eax, eax
je 0x559043
cmp byte [eax], 0
jne 0x559043
cmp byte [eax + 1], 0
je 0x559045
xor eax, eax
mov dword [ebp + ebx*4 + 0x2c], eax
inc ebx
cmp ebx, 4
jl 0x558fe0
inc edx
cmp edx, dword [esi]
jb 0x558fba
inc edi
cmp edi, dword [esi + 4]
jb 0x558fb0
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4