Function at 0x42231f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
push edi
mov dword [ebp - 0x1e0], ecx
mov eax, dword [ebp - 0x1e0]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005c5a20
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0x78
jge 0x422360
cmp dword [ebp - 0x10c], 0
jge 0x422367
xor eax, eax
jmp 0x422db6
cmp dword [0x6130dc], 0x3a
jle 0x422433
mov edx, dword [0x6130dc]
sub edx, 0x28
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 0xc]
and eax, 0xff000000
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xff0000
shr ecx, 0x10
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xff00
shr edx, 8
sub edx, dword [ebp - 0x130]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp + 0xc]
and eax, 0xff
sub eax, dword [ebp - 0x130]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x124], 0
jge 0x4223e8
mov dword [ebp - 0x124], 0
cmp dword [ebp - 0x128], 0
jge 0x4223fb
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x120], 0
jge 0x42240e
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x124]
shl ecx, 0x10
mov edx, dword [ebp - 0x12c]
or edx, ecx
mov eax, dword [ebp - 0x128]
shl eax, 8
or edx, eax
or edx, dword [ebp - 0x120]
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
push 0x100
push 0
mov eax, dword [ebp - 0x1e0]
add eax, 0x18
push eax
call fcn.005c5b80
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x60f9a8
mov edx, dword [ebp - 0x1e0]
add edx, 0x18
push edx
call fcn.005c5b24
add esp, 0xc
mov byte [ebp - 0x108], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x114]
push edx
call fcn.005c5930
add esp, 8
mov eax, dword [ebp - 0x1e0]
add eax, 0x18
push eax
call fcn.005c5a20
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x54
jle 0x422610
push 0x29
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00422220
add esp, 8
test eax, eax
je 0x422519
push 0x2a
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x1e0]
add eax, 0x118
push eax
call fcn.005c5df0
add esp, 0xc
mov ecx, dword [ebp - 0x114]
add ecx, 0x2a
mov dword [ebp - 0x114], ecx
jmp 0x422545
push 0x29
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x1e0]
add eax, 0x118
push eax
call fcn.005c5df0
add esp, 0xc
mov ecx, dword [ebp - 0x114]
add ecx, 0x29
mov dword [ebp - 0x114], ecx
push 0x29
mov edx, dword [ebp - 0x114]
push edx
call fcn.00422220
add esp, 8
test eax, eax
je 0x4225b5
push 0x2a
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x144
push ecx
call fcn.005c5df0
add esp, 0xc
mov edx, dword [ebp - 0x114]
add edx, 0x2a
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.005c5a20
add esp, 4
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x1e0]
add edx, 0x170
push edx
call fcn.005c5df0
add esp, 0xc
jmp 0x4225fe
push 0x29
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x144
push ecx
call fcn.005c5df0
add esp, 0xc
mov edx, dword [ebp - 0x114]
add edx, 0x29
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x170
push ecx
call fcn.005c5930
add esp, 8
mov edx, dword [ebp - 0x1e0]
mov dword [edx + 0x14], 3
jmp 0x42274d
cmp dword [ebp - 0x118], 0x2a
jle 0x422704
push 0x2c
push 0
mov eax, dword [ebp - 0x1e0]
add eax, 0x118
push eax
call fcn.005c5b80
add esp, 0xc
push 0x2c
push 0
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x144
push ecx
call fcn.005c5b80
add esp, 0xc
push 0x29
mov edx, dword [ebp - 0x114]
push edx
call fcn.00422220
add esp, 8
test eax, eax
je 0x4226ae
push 0x2a
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x118
push ecx
call fcn.005c5df0
add esp, 0xc
mov edx, dword [ebp - 0x114]
add edx, 0x2a
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x144
push ecx
call fcn.005c5930
add esp, 8
jmp 0x4226f5
push 0x29
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x1e0]
add eax, 0x118
push eax
call fcn.005c5df0
add esp, 0xc
mov ecx, dword [ebp - 0x114]
add ecx, 0x29
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x1e0]
add eax, 0x144
push eax
call fcn.005c5930
add esp, 8
mov ecx, dword [ebp - 0x1e0]
mov dword [ecx + 0x14], 2
jmp 0x42274d
push 0x2c
push 0
mov edx, dword [ebp - 0x1e0]
add edx, 0x118
push edx
call fcn.005c5b80
add esp, 0xc
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x1e0]
add edx, 0x118
push edx
call fcn.005c5df0
add esp, 0xc
mov eax, dword [ebp - 0x1e0]
mov dword [eax + 0x14], 1
mov ecx, dword [0x636e48]
cmp dword [ecx + 0x9bc], 0
je 0x422a56
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov edx, dword [0x612f4c]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0x14]
imul ecx, dword [str._f__]
mov dword [ebp - 0x134], ecx
push 0
lea edx, [ebp - 0x140]
push edx
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x9b8]
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [ebp - 0x144], 0
jmp 0x4227cc
mov edx, dword [ebp - 0x144]
add edx, 1
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [eax + 0x14]
jge 0x422a56
mov byte [ebp - 0x17c], 0
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0x17b]
rep stosd dword es:[edi], eax
push 0x2d
push 0x20
lea edx, [ebp - 0x17c]
push edx
call fcn.005c5b80
add esp, 0xc
lea eax, [ebp - 0x17c]
push eax
call fcn.005c5a20
add esp, 4
push eax
lea ecx, [ebp - 0x17c]
push ecx
mov edx, dword [str._f__]
add edx, 1
mov eax, dword [ebp - 0x144]
imul eax, edx
push eax
push 0
mov ecx, dword [0x636e48]
mov edx, dword [ecx + 0x9b8]
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [ebp - 0x144]
imul eax, eax, 0x2c
mov ecx, dword [ebp - 0x1e0]
lea edx, [ecx + eax + 0x118]
push edx
push 0x60f9ac
lea eax, [ebp - 0x17c]
push eax
call fcn.005c5b24
add esp, 0xc
lea ecx, [ebp - 0x17c]
push ecx
call fcn.005c5a20
add esp, 4
test eax, eax
je 0x4228c5
lea edx, [ebp - 0x17c]
push edx
call fcn.005c5a20
add esp, 4
push eax
lea eax, [ebp - 0x17c]
push eax
mov ecx, dword [str._f__]
add ecx, 1
mov edx, dword [ebp - 0x144]
imul edx, ecx
push edx
push 0
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x9b8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
cmp dword [ebp + 0x10], 1
jne 0x4229da
mov byte [ebp - 0x1b0], 0
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0x1af]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1b8], 0
lea edx, [ebp - 0x17c]
push edx
call fcn.005c5a20
add esp, 4
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b4], 0
jmp 0x42291f
mov eax, dword [ebp - 0x1b4]
add eax, 1
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
cmp ecx, dword [ebp - 0x1bc]
jge 0x42296a
mov edx, dword [ebp - 0x1b4]
movsx eax, byte [ebp + edx - 0x17c]
cmp eax, 0x30
jne 0x42295a
mov ecx, dword [ebp - 0x1b4]
mov byte [ebp + ecx - 0x1b0], 0x2f
mov dword [ebp - 0x1b8], 1
jmp 0x422968
mov edx, dword [ebp - 0x1b4]
mov byte [ebp + edx - 0x1b0], 0x20
jmp 0x422910
cmp dword [ebp - 0x1b8], 0
je 0x4229da
push 1
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x9b8]
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea edx, [ebp - 0x1b0]
push edx
call fcn.005c5a20
add esp, 4
push eax
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [str._f__]
add ecx, 1
mov edx, dword [ebp - 0x144]
imul edx, ecx
push edx
push 0
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x9b8]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
push 2
mov edx, dword [0x636e48]
mov eax, dword [edx + 0x9b8]
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 0x144]
imul ecx, ecx, 0x2c
mov edx, dword [ebp - 0x1e0]
lea eax, [edx + ecx + 0x118]
push eax
call fcn.005c5a20
add esp, 4
mov dword [ebp - 0x180], eax
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x144]
imul eax, eax, 0x2c
mov ecx, dword [ebp - 0x1e0]
lea edx, [ecx + eax + 0x118]
push edx
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x9b8]
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x1e0]
mov cx, word [ebp - 0x14c]
mov word [eax + edx*2 + 0x1a8], cx
jmp 0x4227bd
mov edx, dword [ebp - 0x1e0]
cmp dword [edx + 0x19c], 0
jne 0x422c34
mov eax, dword [0x636e48]
cmp dword [eax + 0x350], 1
jne 0x422ab8
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x19c
push ecx
push 1
push 0x1a
push 0
push 1
mov eax, dword [0x612f4c]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov edx, dword [0x612f4c]
push edx
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x10c]
push ecx
call fcn.00584e97
jmp 0x422c34
cmp dword [0x6366c4], 0
jne 0x422bb5
push 0
push 0x8000
push str.UIminimap.wyt
call fcn.005c6907
add esp, 0xc
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0xffffffff
jne 0x422aef
xor eax, eax
jmp 0x422db6
mov byte [ebp - 0x1c8], 0
xor edx, edx
mov dword [ebp - 0x1c7], edx
push 4
lea eax, [ebp - 0x1c8]
push eax
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.005c66c9
add esp, 0xc
mov edx, dword [ebp - 0x1cc]
push edx
call fcn.005c663f
add esp, 4
sub eax, 4
mov dword [0x6366c8], eax
mov eax, dword [0x6366c8]
add eax, 0x12
push eax
call fcn.005c5dd3
add esp, 4
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1dc]
mov dword [0x6366c4], ecx
cmp dword [0x6366c4], 0
jne 0x422b6f
mov edx, dword [ebp - 0x1cc]
push edx
call fcn.005c655f
add esp, 4
xor eax, eax
jmp 0x422db6
mov eax, dword [0x6366c8]
push eax
mov ecx, dword [0x6366c4]
push ecx
mov edx, dword [ebp - 0x1cc]
push edx
call fcn.005c66c9
add esp, 0xc
mov eax, dword [ebp - 0x1cc]
push eax
call fcn.005c655f
add esp, 4
push 0x60f9c0
mov ecx, dword [0x6366c8]
lea edx, [ecx*4 + 0x6366c4]
push edx
call fcn.005c5930
add esp, 8
mov eax, dword [ebp - 0x1e0]
add eax, 0x19c
push eax
push 0
push 0
push 0xff000000
push 1
push 1
push 1
push 0x1a
push 0
push 1
mov eax, dword [0x612f4c]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov ecx, dword [0x612f4c]
push ecx
mov edx, dword [0x6366c8]
add edx, 0x12
push edx
mov eax, dword [0x6366c4]
push eax
mov ecx, dword [0x636e48]
mov edx, dword [ecx + 0x10c]
push edx
call fcn.00585c49
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jge 0x422c34
mov eax, dword [ebp - 0x1e0]
mov dword [eax + 0x19c], 0
xor eax, eax
jmp 0x422db6
mov ecx, dword [ebp - 0x1e0]
cmp dword [ecx + 0x19c], 0
jne 0x422c4a
xor eax, eax
jmp 0x422db6
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0x19c]
mov edx, dword [eax]
push ecx
call dword [edx + 0x4c]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], 0
jmp 0x422c96
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov edx, dword [str._f__]
add edx, 1
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0x14]
imul ecx, edx
cmp dword [ebp - 0x110], ecx
jge 0x422d91
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d0], 0
jmp 0x422cde
mov eax, dword [ebp - 0x1d0]
add eax, 1
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
cmp ecx, dword [0x612f4c]
jge 0x422d7d
mov edx, dword [0x612f4c]
imul edx, dword [ebp - 0x110]
add edx, dword [ebp - 0x1d0]
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x9ec]
mov edx, dword [ecx + edx*4]
and edx, 0xff
shr edx, 4
mov byte [ebp - 0x1d8], dl
mov eax, dword [ebp - 0x1d8]
and eax, 0xff
test eax, eax
jle 0x422d5e
mov ecx, dword [ebp - 0x1d8]
and ecx, 0xff
shl ecx, 0xc
or ecx, 0xfff
mov edx, dword [ebp - 0x1d4]
mov word [edx], cx
mov eax, dword [ebp - 0x1d4]
add eax, 2
mov dword [ebp - 0x1d4], eax
jmp 0x422d78
mov ecx, dword [ebp - 0x1d4]
mov word [ecx], 0
mov edx, dword [ebp - 0x1d4]
add edx, 2
mov dword [ebp - 0x1d4], edx
jmp 0x422ccf
mov eax, dword [ebp - 0x11c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x11c], eax
jmp 0x422c87
push 0
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0x19c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x50]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc