Function at 0x535f30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a931e
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push esi
push edi
mov edi, dword [esp + 0x340]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x53621f
cmp byte [edi], bl
je 0x53621f
push ebp
lea ebp, [esi + 0x14]
mov edx, ebp
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x535f73
push ebp
call fcn.0058b0cc
push 0x5bc870
push ebp
call fcn.0058b491
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x13c], eax
jne 0x5360cd
push 0x2ff
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call fcn.0058ac30
add esp, 0xc
cmp byte [0x673400], bl
je 0x536030
mov eax, dword [0xa4813c]
cmp eax, ebx
mov dword [0xa48144], eax
je 0x536030
mov edi, dword [eax]
cmp edi, ebx
je 0x536029
push ebp
lea ecx, [edi + 4]
push ecx
lea edx, [esp + 0x3c]
push 0x5bd104
push edx
call fcn.00589571
lea eax, [esp + 0x44]
push 0x5bc870
push eax
call fcn.0058b491
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x13c], eax
jne 0x536021
mov eax, dword [0xa48144]
cmp eax, ebx
je 0x536029
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [0xa48144], eax
je 0x536029
mov edi, dword [eax]
cmp edi, ebx
jne 0x535fd4
jmp 0x536029
cmp edi, ebx
jne 0x5360cd
mov edi, dword [esp + 0x344]
mov eax, dword [0xa47c48]
cmp eax, ebx
mov dword [0xa47c50], eax
je 0x53609c
mov edi, dword [eax]
cmp edi, ebx
je 0x536095
push ebp
lea ecx, [edi + 4]
push ecx
lea edx, [esp + 0x3c]
push 0x5bd104
push edx
call fcn.00589571
lea eax, [esp + 0x44]
push 0x5bc870
push eax
call fcn.0058b491
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x13c], eax
jne 0x536091
mov eax, dword [0xa47c50]
cmp eax, ebx
je 0x536095
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [0xa47c50], eax
je 0x536095
mov edi, dword [eax]
cmp edi, ebx
jne 0x536044
jmp 0x536095
cmp edi, ebx
jne 0x5360cd
mov edi, dword [esp + 0x344]
push edi
push str.Could_not_locate_MAS_file__s
push 0xfffffffffffffffe
push esi
call fcn.00533f30
add esp, 0x10
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret 4
mov ecx, dword [esi + 0x13c]
push ecx
push 0x10
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0058ba27
add esp, 0x10
lea edi, [esi + 4]
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00548080
mov ecx, 0x6384c4
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x536120
cmp dl, bl
je 0x53611c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x536120
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x536100
xor eax, eax
jmp 0x536125
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x536155
mov ecx, dword [esi + 0x13c]
push ecx
call fcn.0058b205
mov edx, dword [esp + 0x348]
push edx
push str.Wrong_MAS_file_version_for__s
push 0xffffffffffffffff
push esi
call fcn.00533f30
add esp, 0x14
or eax, 0xffffffff
jmp 0x5360b2
mov eax, dword [esi + 0x13c]
push eax
push 4
push 1
push esi
call fcn.0058ba27
mov ecx, dword [esi + 0x13c]
push ecx
push 4
lea edi, [esi + 0x114]
push 1
push edi
call fcn.0058ba27
mov edx, dword [esi + 0x13c]
push edx
push 4
lea eax, [esi + 0x11c]
push 1
push eax
call fcn.0058ba27
mov edi, dword [edi]
mov ecx, edi
shl ecx, 8
mov dword [esi + 0x118], ecx
xor ecx, ecx
mov eax, edi
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00587be5
add esp, 0x34
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x33c], ebx
je 0x5361f2
push fcn.004d3040
push 0x535ef0
push edi
lea ebx, [eax + 4]
push 0x100
push ebx
mov dword [eax], edi
call fcn.00590c28
mov ecx, dword [esi + 0x13c]
mov edx, dword [esi + 0x118]
push ecx
push edx
push 1
push ebx
mov dword [esi + 0x124], ebx
call fcn.0058ba27
add dword [esi + 0x118], 0x1c
add esp, 0x10
xor eax, eax
jmp 0x5360b2
push edi
push str.Invalid_MAS_file_name_for__s
push 0xffffffffffffffff
push esi
call fcn.00533f30
add esp, 0x10
or eax, 0xffffffff
jmp 0x5360b3