Function at 0x1003b158
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x1010c521
call fcn.100f4ca8
sub esp, 0x500
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp + 0x34], ebx
call fcn.10039694
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x30c]
push 0x200
call fcn.1000d527
test eax, eax
jne 0x1003bad0
lea eax, [ebp - 0x30c]
lea edi, [ebx + 0x20]
push eax
mov ecx, edi
call fcn.1003bccb
test al, al
je 0x1003bacd
mov eax, dword [ebx + 0x18]
lea edx, [ebp + 0x40]
push edx
push 2
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push eax
mov dword [ebp + 0x1c], edx
call dword [ecx + 0x10]
test eax, eax
jne 0x1003bad0
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
call fcn.100f4dc0
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
cmp dword [ebp + 0x44], edx
jb 0x1003bacd
ja 0x1003b1f3
cmp dword [ebp + 0x40], eax
jb 0x1003bacd
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
add eax, 1
push 0
pop ecx
adc edx, ecx
mov ecx, dword [edi]
call fcn.100f4dc0
mov ecx, edx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x50], ecx
cmp dword [ebp + 0x44], ecx
jb 0x1003b27f
ja 0x1003b21c
cmp dword [ebp + 0x40], eax
jb 0x1003b27f
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov ecx, dword [edi]
call fcn.100f4dc0
mov ecx, dword [ebx + 0x18]
push 0
push 0
push edx
mov esi, dword [ecx]
push eax
push ecx
call dword [esi + 0x10]
test eax, eax
jne 0x1003bad0
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x50c]
mov esi, 0x200
push esi
call fcn.1000d527
test eax, eax
jne 0x1003b27f
push esi
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.100f5f93
add esp, 0xc
test eax, eax
jne 0x1003b27f
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x50]
mov dword [ebx + 0x54], eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x40]
call fcn.1003cdfe
mov ecx, dword [ebx + 0x28]
xor esi, esi
inc esi
mov eax, 0x8000
shl esi, cl
cmp esi, eax
mov dword [ebp + 0x38], esi
mov ecx, esi
cmovb ecx, eax
mov dword [ebp + 0x54], ecx
push ecx
lea ecx, [ebx + 0x5c]
call fcn.100049f4
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x18]
push esi
call fcn.1000d527
test eax, eax
jne 0x1003bad0
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 0x1c], esi
jne 0x1003bacd
mov ecx, dword [ebx + 0x28]
xor esi, esi
sub ecx, dword [edi]
inc esi
xor eax, eax
shl esi, cl
mov edi, eax
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x28], edi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], eax
call fcn.100390b4
xor eax, eax
mov byte [ebp - 4], 1
push eax
push eax
push esi
push dword [ebx + 0x20]
lea ecx, [ebp - 0x9c]
push dword [ebx + 0x5c]
call fcn.1003be63
test al, al
je 0x1003baa8
cmp dword [ebp - 0x9c], 0x454c4946
jne 0x1003baa8
lea ecx, [ebp - 0x9c]
call fcn.1003c1d0
cmp dword [ebp - 0x68], edi
je 0x1003baa8
lea eax, [ebp + 0x28]
push eax
push dword [ebx + 0x3c]
xor eax, eax
lea ecx, [ebp - 0x9c]
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push eax
push dword [ebx + 0x18]
call fcn.1003ab61
mov edi, dword [ebp + 0x28]
test eax, eax
jne 0x1003baab
mov dword [ebp + 0x30], edi
test edi, edi
je 0x1003baa8
mov eax, dword [ebp - 0x84]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x24], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x20], esi
call fcn.100f4dc0
mov ecx, dword [ebp + 0x58]
shrd esi, ecx, 4
shr ecx, 4
cmp ecx, edx
jb 0x1003b3af
ja 0x1003baa8
cmp esi, eax
ja 0x1003baa8
mov eax, dword [ebp + 0x50]
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebx + 0x28]
call fcn.100f4de0
mov esi, eax
mov dword [ebp + 0x50], edx
xor eax, eax
mov dword [ebp + 0x4c], esi
cmp edx, eax
ja 0x1003baa8
cmp esi, 0x40000000
ja 0x1003baa8
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x1003b3fb
mov eax, dword [ecx]
lea edx, [ebp + 0x20]
push edx
lea edx, [ebp + 0x4c]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x1003baab
mov esi, dword [ebp + 0x4c]
lea ecx, [ebx + 0xc]
call fcn.1003963d
push esi
lea ecx, [ebx + 0xc]
call fcn.1000d657
xorps xmm0, xmm0
movlpd qword [ebp + 0x4c], xmm0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x1003b445
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp + 0x14], eax
and eax, 0x3fff
or eax, edx
mov dword [ebp + 0x18], edx
jne 0x1003b445
mov eax, dword [ecx]
lea edx, [ebp + 0x4c]
push edx
lea edx, [ebp + 0x14]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x1003baab
mov ecx, dword [ebp + 0x20]
sub ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x54]
mov esi, edx
sbb eax, dword [ebp + 0x50]
mov dword [ebp + 0x3c], esi
cmp dword [ebp + 0x1c], eax
jb 0x1003b469
ja 0x1003b464
cmp edx, ecx
jbe 0x1003b469
mov esi, ecx
mov dword [ebp + 0x3c], ecx
cmp esi, dword [ebp + 0x38]
jb 0x1003b51f
mov edx, dword [ebx + 0x5c]
mov ecx, edi
push esi
call fcn.1000d527
test eax, eax
jne 0x1003baab
add dword [ebp + 0x4c], esi
mov edx, eax
mov dword [ebp + 0x58], edx
adc dword [ebp + 0x50], eax
mov esi, dword [ebx + 0x5c]
lea ecx, [ebp - 0x10c]
add esi, edx
call fcn.100390b4
xor ecx, ecx
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x10], 3
lea eax, [ebx + 0x64]
cmovne eax, ecx
lea ecx, [ebp - 0x10c]
push eax
push dword [ebx + 0x10]
push dword [ebp + 0x44]
push dword [ebx + 0x20]
push esi
call fcn.1003be63
test al, al
je 0x1003b50c
lea ecx, [ebx + 0xc]
call fcn.1000338c
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebx + 0xc]
call fcn.1003951d
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
call fcn.100392f5
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x58]
sub eax, ecx
add edx, ecx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x58], edx
cmp eax, ecx
jae 0x1003b490
jmp 0x1003b414
lea ecx, [ebp - 0x10c]
call fcn.100392f5
xor ebx, ebx
inc ebx
jmp 0x1003baad
mov ecx, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp + 0x58], edx
mov esi, edx
test ecx, ecx
je 0x1003b5b8
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + esi*4]
cmp dword [esi], 0x454c4946
jne 0x1003b5a4
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
or eax, edx
je 0x1003b5a4
movzx eax, dx
test eax, eax
ja 0x1003b517
mov eax, dword [esi + 8]
jb 0x1003b559
cmp eax, ecx
jae 0x1003b517
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0x454c4946
jne 0x1003b5a4
shr edx, 0x10
cmp word [ecx + 4], dx
jne 0x1003b57d
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jne 0x1003b57d
inc eax
mov dh, al
jmp 0x1003b582
xor eax, eax
mov dh, al
inc eax
mov dl, byte [ecx + 6]
and dl, al
test byte [esi + 6], al
je 0x1003b596
test dl, dl
je 0x1003b5a4
test dh, dh
je 0x1003b517
jmp 0x1003b59e
test dl, dl
jne 0x1003b5a4
test dh, dh
je 0x1003b5a4
push esi
call fcn.1003b0f7
mov esi, dword [ebp + 0x58]
mov ecx, dword [ebx + 0x10]
inc esi
mov dword [ebp + 0x58], esi
cmp esi, ecx
jb 0x1003b531
xor edx, edx
mov esi, edx
test ecx, ecx
je 0x1003b5db
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
cmp dword [ecx], 0x454c4946
jne 0x1003b5d1
call fcn.1003c1d0
mov ecx, dword [ebx + 0x10]
inc esi
cmp esi, ecx
jb 0x1003b5be
xor edx, edx
mov dword [ebp + 0x54], edx
test ecx, ecx
je 0x1003b80d
mov edi, edx
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edi*4]
mov dword [ebp + 0x50], esi
cmp dword [esi], 0x454c4946
jne 0x1003b7fb
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x1003b7fb
cmp edi, 0x10
jae 0x1003b61a
cmp byte [ebx + 0x85], al
je 0x1003b7fb
xor ecx, ecx
inc ecx
test byte [esi + 6], cl
jne 0x1003b62f
cmp byte [ebx + 0x86], 0
je 0x1003b7fb
mov eax, dword [esi + 0x28]
mov dword [esi + 0x10], eax
or eax, 0xffffffff
mov dword [ebp + 0x38], eax
mov al, byte [esi + 6]
shr al, 1
test cl, al
jne 0x1003b671
cmp dword [esi + 0x34], 0
mov ecx, edx
jbe 0x1003b671
mov edx, dword [esi + 0x30]
mov ebx, dword [esi + 0x18]
mov eax, dword [edx]
mov eax, dword [ebx + eax*4]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
mov ebx, dword [ebp + 0x34]
je 0x1003b66c
inc ecx
add edx, 8
cmp ecx, dword [esi + 0x34]
jb 0x1003b64f
jmp 0x1003b66f
mov dword [ebp + 0x38], ecx
xor edx, edx
cmp dword [esi + 0x28], edx
jne 0x1003b6f1
cmp edi, 0x10
jae 0x1003b6a2
cmp dword [esi + 0x34], 0
mov eax, edx
mov dword [ebp + 0x58], edx
jbe 0x1003b6f1
push eax
mov ecx, esi
call fcn.1003aac1
or eax, edx
jne 0x1003b6a2
mov eax, dword [ebp + 0x58]
inc eax
mov dword [ebp + 0x58], eax
cmp eax, dword [esi + 0x34]
jb 0x1003b686
xor edx, edx
jmp 0x1003b6f1
lea ecx, [esi + 0x24]
call fcn.100395a9
or ecx, 0xffffffff
mov dword [ebp + 0x58], eax
lea edx, [ebp - 0x2c]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, str._NONAME__
mov eax, edx
mov byte [ebp - 0x2c], 0x5b
sub ecx, eax
inc edx
mov al, byte [edx + ecx]
mov byte [edx], al
test al, al
jne 0x1003b6c5
mov ecx, edi
call fcn.100019de
mov ecx, dword [ebp + 0x58]
lea eax, [ebp - 0x2c]
push eax
add ecx, 8
call fcn.10003501
mov eax, dword [ebp + 0x58]
xor edx, edx
mov byte [eax + 0x14], 3
mov dword [eax + 0x10], edx
mov eax, edx
mov dword [ebp + 0x58], edx
cmp dword [esi + 0x28], edx
jbe 0x1003b7fb
push eax
mov ecx, esi
call fcn.10039f03
test eax, eax
js 0x1003b715
dec dword [esi + 0x10]
xor edx, edx
jmp 0x1003b7eb
mov cl, byte [esi + 6]
or eax, 0xffffffff
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 4], eax
mov eax, edx
shr cl, 1
test edx, edx
push 0xffffffffffffffff
pop edx
cmovs eax, edx
mov dword [ebp], edi
test cl, 1
push 0xfffffffffffffffe
pop ecx
cmovne eax, ecx
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [esi + 0x14], eax
jge 0x1003b752
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
sub esp, 0x14
lea esi, [ebp]
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1003946c
mov esi, dword [ebp + 0x50]
xor edx, edx
mov ecx, edx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x3c], ecx
cmp dword [esi + 0x34], edx
jbe 0x1003b7e8
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x1003b786
cmp ecx, dword [ebp + 0x38]
je 0x1003b7e3
mov eax, dword [esi + 0x30]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax + ecx*8]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ecx*4]
add ecx, 8
cmp edi, 8
jne 0x1003b7ab
mov edx, str._Bad
call fcn.100025bf
test al, al
jne 0x1003b7d2
mov eax, dword [ebp + 0x3c]
lea esi, [ebp]
sub esp, 0x14
mov dword [ebp + 8], eax
mov byte [ebx + 0x84], 1
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1003946c
mov esi, dword [ebp + 0x50]
mov edi, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x3c]
inc ecx
mov dword [ebp + 0x3c], ecx
cmp ecx, dword [esi + 0x34]
jb 0x1003b778
jmp 0x1003b70e
mov edi, dword [ebp + 0x54]
jmp 0x1003b7d5
mov edi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x58]
inc eax
mov dword [ebp + 0x58], eax
cmp eax, dword [esi + 0x28]
jb 0x1003b6ff
mov ecx, dword [ebx + 0x10]
inc edi
mov dword [ebp + 0x54], edi
cmp edi, ecx
jb 0x1003b5e8
mov edi, dword [ebp + 0x30]
cmp ecx, 9
jbe 0x1003b914
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x24]
xor eax, eax
mov dword [ebp + 0x50], edx
mov esi, eax
cmp dword [edx + 0x34], eax
jbe 0x1003b914
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 + 0x44], ecx
add ecx, 8
call fcn.100025bf
test al, al
jne 0x1003b85a
mov edx, dword [ebp + 0x50]
inc esi
cmp esi, dword [edx + 0x34]
jb 0x1003b82c
jmp 0x1003b914
xor eax, eax
mov dword [ebp + 0x58], eax
mov ecx, dword [ebp + 0x50]
lea eax, [ebp + 0x58]
push eax
push dword [ebx + 0x3c]
mov byte [ebp - 4], 0x10
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push esi
push dword [ebx + 0x18]
call fcn.1003ab61
mov esi, eax
test esi, esi
je 0x1003b89a
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x1003b893
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, esi
jmp 0x1003baad
mov esi, dword [ebp + 0x58]
test esi, esi
je 0x1003b902
mov eax, dword [ebp + 0x44]
cmp byte [eax + 4], 0
je 0x1003b8b2
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x1003b8b7
mov ecx, dword [eax + 0x14]
xor eax, eax
xor edx, edx
cmp eax, edx
ja 0x1003b902
jb 0x1003b8c7
cmp ecx, 0x20000000
jae 0x1003b902
lea eax, [ecx + 1]
mov edx, 0x40000
test edx, eax
je 0x1003b902
sub ecx, edx
mov dword [ebp + 0x44], ecx
push ecx
lea ecx, [ebx + 0x70]
call fcn.100049f4
push dword [ebp + 0x44]
mov edx, dword [ebx + 0x70]
mov ecx, esi
call fcn.1000d527
mov ebx, dword [ebp + 0x34]
test eax, eax
jne 0x1003b902
mov ecx, ebx
call fcn.1003c4aa
mov byte [ebp - 4], 0x13
jmp 0x1003b90a
mov byte [ebp - 4], 0x14
test esi, esi
je 0x1003b910
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
xor edx, edx
mov byte [ebp + 0x4b], dl
mov byte [ebp + 0x4a], dl
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x54], eax
test eax, eax
je 0x1003b9bf
xor eax, eax
mov esi, eax
mov ecx, dword [ebx]
mov edi, dword [ebx + 0xc]
mov eax, dword [ecx + esi]
mov ecx, dword [ecx + esi + 4]
mov eax, dword [edi + eax*4]
mov dword [ebp + 0x44], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
movzx eax, di
cmp ecx, 5
jne 0x1003b95f
test eax, eax
jne 0x1003b95f
or eax, 0xffffffff
jmp 0x1003b99e
push eax
push ecx
mov ecx, ebx
call fcn.10039f4a
test eax, eax
js 0x1003b983
mov edx, dword [ebx]
imul ecx, eax, 0x14
shr edi, 0x10
mov ecx, dword [ecx + edx]
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + ecx*4]
cmp word [ecx + 4], di
je 0x1003b99b
mov ecx, dword [ebp + 0x44]
xor eax, eax
inc eax
test byte [ecx + 6], al
je 0x1003b995
mov byte [ebp + 0x4b], al
push 0xfffffffffffffffe
jmp 0x1003b99a
mov byte [ebp + 0x4a], al
push 0xfffffffffffffffd
pop eax
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebx]
inc edx
mov dword [ebp + 0x34], edx
mov dword [ecx + esi + 0xc], eax
add esi, 0x14
mov edi, dword [ebx + 4]
mov dword [ebp + 0x54], edi
cmp edx, edi
jb 0x1003b931
mov edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x54]
cmp byte [ebx + 0x85], 0
je 0x1003ba0e
mov dword [ebx + 0xa0], eax
lea ecx, [ebp + 0x40]
inc eax
push str._SYSTEM_
mov dword [ebp + 0x54], eax
call fcn.1000213c
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.1000338c
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.10039563
cmp dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
je 0x1003ba0e
push dword [ebp + 0x40]
call fcn.100f4c7e
pop ecx
cmp byte [ebp + 0x4b], 0
je 0x1003ba5d
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x40]
mov dword [ebx + 0xa4], eax
inc eax
push str._LOST_
mov dword [ebp + 0x54], eax
call fcn.1000213c
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x17
mov ecx, esi
call fcn.1000338c
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.10039563
cmp dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
je 0x1003ba5d
push dword [ebp + 0x40]
call fcn.100f4c7e
pop ecx
cmp byte [ebp + 0x4a], 0
je 0x1003baa4
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x2c]
push str._UNKNOWN_
mov dword [ebx + 0xa8], eax
call fcn.1000213c
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x18
mov ecx, esi
call fcn.1000338c
lea eax, [ebp + 0x2c]
mov ecx, esi
push eax
call fcn.10039563
cmp dword [ebp + 0x2c], 0
je 0x1003baa4
push dword [ebp + 0x2c]
call fcn.100f4c7e
pop ecx
xor eax, eax
jmp 0x1003baab
xor eax, eax
inc eax
mov ebx, eax
lea ecx, [ebp - 0x9c]
call fcn.100392f5
mov dword [ebp - 4], 0x19
test edi, edi
je 0x1003bac9
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, ebx
jmp 0x1003bad0
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x5c
leave
ret