Function at 0x1005e9ca
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x53c
mov eax, 0x100d86b6
call fcn.100c758e
mov ebx, ecx
mov dword [ebp - 0x538], ebx
call fcn.1005dd91
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x230]
push 0x200
call fcn.100a6a74
test eax, eax
jne 0x1005f48e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0x20]
call fcn.1005f5fe
test al, al
jne 0x1005ea1c
xor eax, eax
inc eax
jmp 0x1005f48e
mov eax, dword [ebx + 0x18]
lea edx, [ebp - 0x514]
push edx
push 2
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1005f48e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
call fcn.100c7400
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
cmp dword [ebp - 0x510], edx
ja 0x1005ea60
jb 0x1005ea14
cmp dword [ebp - 0x514], eax
jb 0x1005ea14
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
add eax, 1
mov ecx, dword [ebx + 0x20]
adc edx, 0
call fcn.100c7400
mov ecx, edx
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x52c], ecx
cmp dword [ebp - 0x510], ecx
jb 0x1005eafe
ja 0x1005ea94
cmp dword [ebp - 0x514], eax
jb 0x1005eafe
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x20]
mov edi, dword [esi]
push 0
push 0
call fcn.100c7400
push edx
push eax
push esi
call dword [edi + 0x10]
test eax, eax
jne 0x1005f48e
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x430]
mov esi, 0x200
push esi
call fcn.100a6a74
test eax, eax
jne 0x1005eafe
push esi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100c9227
add esp, 0xc
test eax, eax
jne 0x1005eafe
mov eax, dword [ebp - 0x508]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x52c]
mov dword [ebx + 0x64], eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x40]
call fcn.100604b1
lea ecx, [ebp - 0x498]
call fcn.1005d7db
and dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x534], edi
lea esi, [ebx + 0x6c]
mov byte [ebp - 4], 1
push 0x1000
mov ecx, esi
call fcn.10023ad4
mov edx, dword [esi]
mov ecx, dword [ebx + 0x18]
push 0x1000
call fcn.100a6a74
test eax, eax
jne 0x1005f471
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
call fcn.10048b8e
cmp eax, dword [ebx + 0x20]
jl 0x1005f46e
mov dword [ebx + 0x58], eax
cmp eax, 0xf
ja 0x1005f46e
sub eax, dword [ebx + 0x20]
xor edx, edx
push edi
mov ecx, eax
inc edx
shl edx, cl
lea ecx, [ebp - 0x498]
push edi
push edx
push dword [ebx + 0x20]
mov dword [ebp - 0x508], edx
push dword [esi]
call fcn.1005f77e
test al, al
je 0x1005f46e
cmp dword [ebp - 0x498], 0x454c4946
jne 0x1005f46e
lea ecx, [ebp - 0x498]
call fcn.1005fa4d
cmp dword [ebp - 0x464], edi
je 0x1005f46e
lea eax, [ebp - 0x534]
push eax
push dword [ebx + 0x3c]
lea ecx, [ebp - 0x498]
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push edi
push dword [ebx + 0x18]
call fcn.1005e4b6
mov edi, dword [ebp - 0x534]
test eax, eax
jne 0x1005f471
test edi, edi
je 0x1005f46e
mov eax, dword [ebp - 0x480]
mov edx, dword [ebx + 0x3c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x540], ecx
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x53c], eax
mov eax, dword [ebx + 0x38]
call fcn.100c7400
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x50c], ecx
mov ecx, dword [ebp - 0x524]
shrd dword [ebp - 0x50c], ecx, 4
shr ecx, 4
cmp ecx, edx
jb 0x1005ec59
ja 0x1005f46e
cmp dword [ebp - 0x50c], eax
ja 0x1005f46e
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
mov edx, eax
shl edx, cl
mov dword [ebp - 0x50c], edx
cmp edx, 0x8000
ja 0x1005f471
mov eax, dword [ebp - 0x510]
mov edx, dword [ebp - 0x524]
call fcn.100c70d0
mov dword [ebp - 0x530], eax
mov dword [ebp - 0x52c], edx
test edx, edx
jne 0x1005f46e
cmp eax, 0x40000000
ja 0x1005f46e
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1005ecc8
mov eax, dword [ecx]
lea edx, [ebp - 0x540]
push edx
lea edx, [ebp - 0x530]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x1005f471
push 0x8000
mov ecx, esi
call fcn.10023ad4
mov esi, dword [ebp - 0x530]
lea eax, [ebx + 0xc]
mov ecx, eax
mov dword [ebp - 0x51c], eax
call fcn.1005dd3a
push esi
lea ecx, [ebx + 0xc]
call fcn.1001cb0d
xorps xmm0, xmm0
movlpd qword [ebp - 0x528], xmm0
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1005ed3b
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x544], 0
mov dword [ebp - 0x548], eax
and eax, 0x3ff
or eax, 0
jne 0x1005ed3b
mov eax, dword [ecx]
lea edx, [ebp - 0x528]
push edx
lea edx, [ebp - 0x548]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x1005f471
mov ecx, dword [ebp - 0x540]
mov edx, 0x8000
sub ecx, dword [ebp - 0x528]
mov esi, edx
mov eax, dword [ebp - 0x53c]
sbb eax, dword [ebp - 0x524]
test eax, eax
ja 0x1005ed66
jb 0x1005ed64
cmp ecx, edx
jae 0x1005ed66
mov esi, ecx
cmp esi, dword [ebp - 0x50c]
jb 0x1005ee30
mov edx, dword [ebx + 0x6c]
mov ecx, edi
push esi
call fcn.100a6a74
test eax, eax
jne 0x1005f471
add dword [ebp - 0x528], esi
adc dword [ebp - 0x524], eax
xor ecx, ecx
mov dword [ebp - 0x510], ecx
mov eax, dword [ebx + 0x6c]
add eax, ecx
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x52c], eax
call fcn.1005d7db
xor eax, eax
mov byte [ebp - 4], 0x10
cmp dword [ebx + 0x10], 3
jne 0x1005edbe
lea eax, [ebx + 0x74]
push eax
push dword [ebx + 0x10]
lea ecx, [ebp - 0x500]
push dword [ebp - 0x508]
push dword [ebx + 0x20]
push dword [ebp - 0x52c]
call fcn.1005f77e
test al, al
je 0x1005ee1d
lea eax, [ebp - 0x500]
push eax
lea ecx, [ebx + 0xc]
call fcn.1005dc01
lea ecx, [ebp - 0x500]
mov byte [ebp - 4], 1
call fcn.1005d9f5
mov eax, dword [ebp - 0x50c]
sub esi, eax
mov ecx, dword [ebp - 0x510]
add ecx, eax
mov dword [ebp - 0x510], ecx
cmp esi, eax
jae 0x1005ed99
jmp 0x1005ecfe
lea ecx, [ebp - 0x500]
call fcn.1005d9f5
xor ebx, ebx
inc ebx
jmp 0x1005f473
mov ecx, dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x510], eax
test ecx, ecx
je 0x1005eed3
mov edx, dword [ebp - 0x51c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x508], eax
mov esi, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, esi
or eax, edx
mov dword [ebp - 0x548], esi
je 0x1005eebb
movzx eax, dx
test eax, eax
ja 0x1005ee28
jb 0x1005ee73
cmp esi, ecx
ja 0x1005ee28
mov ecx, dword [ebx + 0xc]
shr edx, 0x10
mov ecx, dword [ecx + esi*4]
cmp word [ecx + 4], dx
jne 0x1005ee8f
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jne 0x1005ee8f
inc eax
mov dl, al
jmp 0x1005ee94
xor eax, eax
xor dl, dl
inc eax
mov esi, dword [ebp - 0x508]
test byte [esi + 6], al
je 0x1005eeaa
test byte [ecx + 6], al
je 0x1005eeaf
test dl, dl
je 0x1005ee28
jmp 0x1005eeb1
test byte [ecx + 6], al
je 0x1005eeb1
xor dl, dl
test dl, dl
je 0x1005eebb
push esi
call fcn.1005e966
mov eax, dword [ebp - 0x510]
mov ecx, dword [ebx + 0x10]
inc eax
mov dword [ebp - 0x510], eax
cmp eax, ecx
jb 0x1005ee43
xor esi, esi
test ecx, ecx
je 0x1005eef2
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
call fcn.1005fa4d
mov ecx, dword [ebx + 0x10]
inc esi
cmp esi, ecx
jb 0x1005eed9
mov edi, dword [ebp - 0x534]
and dword [ebp - 0x50c], 0
or edx, 0xffffffff
test ecx, ecx
je 0x1005f17c
mov edi, dword [ebp - 0x50c]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edi*4]
mov dword [ebp - 0x52c], esi
cmp dword [esi], 0x454c4946
jne 0x1005f164
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x1005f164
cmp edi, 0x10
jae 0x1005ef3f
cmp byte [ebx + 0x94], al
je 0x1005f164
xor ecx, ecx
inc ecx
test byte [esi + 6], cl
jne 0x1005ef54
cmp byte [ebx + 0x95], 0
je 0x1005f164
mov eax, dword [esi + 0x28]
mov dword [esi + 0x10], eax
mov al, byte [esi + 6]
shr al, 1
mov dword [ebp - 0x524], edx
test cl, al
jne 0x1005efaa
xor edx, edx
cmp dword [esi + 0x34], edx
jbe 0x1005efaa
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x510], eax
mov ebx, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x538]
cmp dword [eax + 0xc], 0
je 0x1005efa4
mov eax, dword [ebp - 0x510]
inc edx
add eax, 8
mov dword [ebp - 0x510], eax
cmp edx, dword [esi + 0x34]
jb 0x1005ef79
jmp 0x1005efaa
mov dword [ebp - 0x524], edx
cmp dword [esi + 0x28], 0
jne 0x1005f047
mov al, cl
cmp edi, 0x10
jae 0x1005efec
xor al, al
xor edi, edi
mov byte [ebp - 0x501], al
cmp dword [esi + 0x34], edi
jbe 0x1005efe6
push edi
mov ecx, esi
call fcn.1005e48b
or eax, edx
jne 0x1005efe4
inc edi
cmp edi, dword [esi + 0x34]
jb 0x1005efca
mov al, byte [ebp - 0x501]
jmp 0x1005efe6
mov al, 1
mov edi, dword [ebp - 0x50c]
test al, al
je 0x1005f047
lea ecx, [esi + 0x24]
call fcn.1005dcb0
or ecx, 0xffffffff
mov dword [ebp - 0x510], eax
lea edx, [ebp - 0x30]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, str._NONAME__
mov eax, edx
mov byte [ebp - 0x30], 0x5b
sub ecx, eax
inc edx
mov al, byte [ecx + edx]
mov byte [edx], al
test al, al
jne 0x1005f016
mov ecx, edi
call fcn.100178c5
mov ecx, dword [ebp - 0x510]
lea eax, [ebp - 0x30]
push eax
add ecx, 8
call fcn.1001907b
mov eax, dword [ebp - 0x510]
and dword [eax + 0x10], 0
mov byte [eax + 0x14], 3
xor eax, eax
mov dword [ebp - 0x510], eax
cmp dword [esi + 0x28], eax
jbe 0x1005f161
push eax
mov ecx, esi
call fcn.1005e0c6
test eax, eax
js 0x1005f06c
dec dword [esi + 0x10]
jmp 0x1005f145
mov cl, byte [esi + 6]
or eax, 0xffffffff
mov edx, dword [ebp - 0x524]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x510]
shr cl, 1
test edx, edx
mov dword [ebp - 0x20], eax
mov eax, edx
push 0xffffffffffffffff
pop edx
cmovs eax, edx
mov dword [ebp - 0x24], edi
and cl, 1
push 0xfffffffffffffffe
pop ecx
cmovne eax, ecx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x1c], eax
jge 0x1005f0ae
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
sub esp, 0x14
lea esi, [ebp - 0x24]
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1005dc85
mov esi, dword [ebp - 0x52c]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x508], edi
cmp dword [esi + 0x34], edi
jbe 0x1005f145
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x1005f0e9
cmp edi, dword [ebp - 0x524]
je 0x1005f139
cmp dword [ebp - 0x50c], 8
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + edi*8]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ecx*4]
lea ecx, [ecx + 8]
jne 0x1005f10f
mov edx, str._Bad
call fcn.100184c3
test al, al
jne 0x1005f139
sub esp, 0x14
mov dword [ebp - 0x1c], edi
lea esi, [ebp - 0x24]
mov byte [ebx + 0xbc], 1
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1005dc85
mov esi, dword [ebp - 0x52c]
mov edi, dword [ebp - 0x508]
inc edi
mov dword [ebp - 0x508], edi
cmp edi, dword [esi + 0x34]
jb 0x1005f0d8
mov eax, dword [ebp - 0x510]
mov edi, dword [ebp - 0x50c]
inc eax
mov dword [ebp - 0x510], eax
cmp eax, dword [esi + 0x28]
jb 0x1005f058
or edx, 0xffffffff
mov ecx, dword [ebx + 0x10]
inc edi
mov dword [ebp - 0x50c], edi
cmp edi, ecx
jb 0x1005ef0a
mov edi, dword [ebp - 0x534]
cmp ecx, 9
lea ecx, [ebx + 0xc]
jbe 0x1005f2ad
mov eax, dword [ecx]
xor esi, esi
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x508], edx
cmp dword [edx + 0x34], esi
jbe 0x1005f2ad
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + esi*8]
mov eax, dword [edx + 0x18]
mov edx, str._SDS
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x52c], ecx
add ecx, 8
call fcn.100184c3
test al, al
jne 0x1005f1d2
mov edx, dword [ebp - 0x508]
inc esi
cmp esi, dword [edx + 0x34]
jb 0x1005f19e
jmp 0x1005f2aa
and dword [ebp - 0x510], 0
mov ecx, dword [ebp - 0x508]
lea eax, [ebp - 0x510]
push eax
push dword [ebx + 0x3c]
mov byte [ebp - 4], 0x14
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push esi
push dword [ebx + 0x18]
call fcn.1005e4b6
mov esi, eax
test esi, esi
je 0x1005f21d
mov ecx, dword [ebp - 0x510]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x1005f216
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, esi
jmp 0x1005f473
mov esi, dword [ebp - 0x510]
test esi, esi
je 0x1005f298
mov eax, dword [ebp - 0x52c]
cmp byte [eax + 4], 0
je 0x1005f23b
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x1005f240
mov ecx, dword [eax + 0x14]
xor eax, eax
test eax, eax
ja 0x1005f298
jb 0x1005f24e
cmp ecx, 0x20000000
jae 0x1005f298
lea eax, [ecx + 1]
mov edx, 0x40000
test edx, eax
je 0x1005f298
sub ecx, edx
mov dword [ebp - 0x508], ecx
push ecx
lea ecx, [ebx + 0x80]
call fcn.10023ad4
push dword [ebp - 0x508]
mov edx, dword [ebx + 0x80]
mov ecx, esi
call fcn.100a6a74
mov ebx, dword [ebp - 0x538]
test eax, eax
jne 0x1005f298
mov ecx, ebx
call fcn.1005fcf9
mov byte [ebp - 4], 0x17
jmp 0x1005f2a0
mov byte [ebp - 4], 0x18
test esi, esi
je 0x1005f2a6
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
mov esi, dword [ebx + 4]
xor edx, edx
mov byte [ebp - 0x515], 0
mov byte [ebp - 0x501], 0
mov dword [ebp - 0x508], edx
test esi, esi
je 0x1005f382
xor edi, edi
mov esi, dword [ebx]
mov ecx, dword [ecx]
mov eax, dword [esi + edi]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + edi + 4]
mov dword [ebp - 0x510], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x52c], eax
movzx eax, ax
cmp ecx, 5
jne 0x1005f306
test eax, eax
jne 0x1005f306
or eax, 0xffffffff
jmp 0x1005f360
push eax
push ecx
mov ecx, ebx
call fcn.1005dfa9
test eax, eax
js 0x1005f339
mov ebx, dword [ebp - 0x51c]
imul ecx, eax, 0x14
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x538]
mov ecx, dword [ecx + esi]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp - 0x52c]
shr edx, 0x10
cmp word [ecx + 4], dx
je 0x1005f35a
mov ecx, dword [ebp - 0x510]
xor eax, eax
inc eax
test byte [ecx + 6], al
je 0x1005f351
mov byte [ebp - 0x515], al
push 0xfffffffffffffffe
jmp 0x1005f359
mov byte [ebp - 0x501], al
push 0xfffffffffffffffd
pop eax
mov edx, dword [ebp - 0x508]
mov dword [esi + edi + 0xc], eax
lea ecx, [ebx + 0xc]
mov esi, dword [ebx + 4]
inc edx
add edi, 0x14
mov dword [ebp - 0x508], edx
cmp edx, esi
jb 0x1005f2d0
mov edi, dword [ebp - 0x534]
cmp byte [ebx + 0x94], 0
je 0x1005f3d1
mov dword [ebx + 0xb0], esi
lea ecx, [ebp - 0x520]
push str._SYSTEM_
inc esi
call fcn.10018027
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebx + 0x98]
call fcn.1005dc43
cmp dword [ebp - 0x520], 0
mov byte [ebp - 4], 1
je 0x1005f3d1
push dword [ebp - 0x520]
call fcn.100c751e
pop ecx
cmp byte [ebp - 0x515], 0
je 0x1005f420
mov dword [ebx + 0xb4], esi
lea ecx, [ebp - 0x520]
push str._LOST_
inc esi
call fcn.10018027
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebx + 0x98]
call fcn.1005dc43
cmp dword [ebp - 0x520], 0
mov byte [ebp - 4], 1
je 0x1005f420
push dword [ebp - 0x520]
call fcn.100c751e
pop ecx
cmp byte [ebp - 0x501], 0
je 0x1005f46a
push str._UNKNOWN_
lea ecx, [ebp - 0x520]
mov dword [ebx + 0xb8], esi
call fcn.10018027
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebx + 0x98]
call fcn.1005dc43
cmp dword [ebp - 0x520], 0
je 0x1005f46a
push dword [ebp - 0x520]
call fcn.100c751e
pop ecx
xor ebx, ebx
jmp 0x1005f473
xor eax, eax
inc eax
mov ebx, eax
mov byte [ebp - 4], 0x1d
test edi, edi
je 0x1005f481
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
lea ecx, [ebp - 0x498]
call fcn.1005d9f5
mov eax, ebx
call fcn.100c7538
ret