Function at 0x1005535c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
sub esp, 0x420
lea ebp, [esp - 4]
mov eax, dword [0x100e6dd4]
xor eax, ebp
mov dword [ebp + 0x420], eax
push 0x130
mov eax, 0x100bb5a6
call fcn.100b0a55
mov ebx, ecx
call fcn.1005524e
mov ecx, dword [ebx + 0x18]
push 0x200
lea edx, [ebp + 0x200]
call fcn.10021a5b
test eax, eax
jne 0x10055ce8
lea eax, [ebp + 0x200]
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call fcn.10052124
test al, al
je 0x10055ce5
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 2
push 0
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10055ce8
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 4]
call fcn.100b1ad0
mov edi, dword [ebp - 0x28]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
cmp edi, edx
ja 0x10055406
jb 0x10055ce5
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebx + 0x60]
jb 0x10055ce5
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
add eax, 1
adc edx, 0
call fcn.100b1ad0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
cmp edi, edx
jb 0x10055489
ja 0x1005542a
cmp dword [ebp - 0x2c], eax
jb 0x10055489
mov eax, dword [ebx + 0x18]
mov edi, dword [eax]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov ecx, dword [esi]
push 0
push 0
call fcn.100b1ad0
push edx
push eax
push dword [ebx + 0x18]
call dword [edi + 0x10]
test eax, eax
jne 0x10055ce8
mov ecx, dword [ebx + 0x18]
mov edi, 0x200
push edi
lea edx, [ebp]
call fcn.10021a5b
test eax, eax
jne 0x10055489
push edi
lea eax, [ebp]
push eax
lea eax, [ebp + 0x200]
push eax
call fcn.100aefe0
add esp, 0xc
test eax, eax
jne 0x10055489
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x64], eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x40]
call fcn.100530c9
lea ecx, [ebp - 0xd4]
call fcn.10054dff
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea edi, [ebx + 0x6c]
push 0x1000
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1001aa79
mov edx, dword [edi]
mov ecx, dword [ebx + 0x18]
push 0x1000
call fcn.10021a5b
test eax, eax
je 0x100554e3
mov esi, eax
lea ecx, [ebp - 0xd4]
call fcn.10055100
mov eax, esi
jmp 0x10055ce8
mov edi, dword [edi]
push dword [edi + 0x1c]
call fcn.10045304
mov edx, dword [esi]
cmp eax, edx
jge 0x100554f8
xor esi, esi
inc esi
jmp 0x100554d1
mov dword [ebx + 0x58], eax
cmp eax, 0xf
ja 0x100554f3
mov ecx, eax
xor eax, eax
sub ecx, edx
inc eax
shl eax, cl
push 0
push 0
lea ecx, [ebp - 0xd4]
push eax
push edx
push edi
mov dword [ebp - 0x34], eax
call fcn.10054e90
test al, al
je 0x100554f3
cmp dword [ebp - 0xd4], 0x454c4946
jne 0x100554f3
lea ecx, [ebp - 0xd4]
call fcn.10054e2c
cmp dword [ebp - 0xa0], 0
je 0x100554f3
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx + 0x3c]
lea ecx, [ebp - 0xd4]
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push 0
push eax
call fcn.1005387f
mov edi, eax
test edi, edi
je 0x1005557e
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x10055577
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x100554d1
cmp dword [ebp - 0x14], 0
je 0x100554f3
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov edi, dword [eax + 0x30]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x48], edi
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x18]
call fcn.100b1ad0
mov ecx, dword [ebp - 0x44]
shrd edi, ecx, 4
shr ecx, 4
cmp ecx, edx
jb 0x100555d0
ja 0x100555be
cmp edi, eax
jbe 0x100555d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0
call dword [ecx + 8]
jmp 0x100554f3
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
shl eax, cl
mov edi, 0x8000
mov dword [ebp - 0x28], eax
cmp eax, edi
ja 0x100555be
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.100b1970
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
test edx, edx
ja 0x100555be
cmp eax, 0x40000000
ja 0x100555be
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x10055631
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x64]
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10055631
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0
call dword [ecx + 8]
mov esi, dword [ebp - 0x20]
jmp 0x100554d1
push edi
lea ecx, [ebx + 0x6c]
call fcn.1001aa79
push dword [ebp - 0x64]
lea ecx, [ebx + 0xc]
call fcn.100552c1
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1005567e
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], eax
and eax, 0x3ff
xor edx, edx
or eax, edx
jne 0x1005567e
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x6c]
push edx
push ecx
call dword [eax + 0x10]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1005561c
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
sbb eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], edi
test eax, eax
ja 0x1005569c
jb 0x10055697
cmp ecx, edi
jae 0x1005569c
mov dword [ebp - 0x18], ecx
jmp 0x1005569f
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x28]
jb 0x10055743
mov edi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x6c]
push ecx
mov ecx, edi
call fcn.10021a5b
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10055cb3
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x40], eax
push 0
pop edi
adc dword [ebp - 0x3c], edi
mov eax, dword [ebx + 0x6c]
add eax, edi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x20], eax
call fcn.10054dff
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov byte [ebp - 4], 2
cmp eax, 3
jne 0x100556f1
lea ecx, [ebx + 0x74]
push ecx
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x13c]
push dword [esi]
push dword [ebp - 0x20]
call fcn.10054e90
test al, al
je 0x10055cc2
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebx + 0xc]
call fcn.10055126
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.10055100
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x18], eax
add edi, eax
cmp dword [ebp - 0x18], eax
jae 0x100556cd
mov edi, 0x8000
jmp 0x1005564d
and dword [ebp - 0x10], 0
cmp dword [ebx + 0x10], 0
jbe 0x100557e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + eax*4]
mov esi, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov edi, esi
or edi, eax
mov dword [ebp - 0x20], eax
je 0x100557d3
movzx edi, ax
mov dword [ebp - 0x2c], esi
xor esi, esi
cmp edi, esi
ja 0x100555be
jb 0x10055787
mov esi, dword [ebx + 0x10]
cmp dword [ebp - 0x2c], esi
ja 0x100555be
mov esi, dword [ebp - 0x2c]
mov esi, dword [ecx + esi*4]
shr eax, 0x10
cmp word [esi + 4], ax
jne 0x100557a2
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x100557a2
mov cl, 1
jmp 0x100557a4
xor cl, cl
mov al, byte [edx + 6]
and al, 1
je 0x100557bb
test byte [esi + 6], 1
je 0x100557bb
test cl, cl
je 0x100555be
jmp 0x100557c7
test al, al
jne 0x100557c5
test byte [esi + 6], 1
je 0x100557c7
xor cl, cl
test cl, cl
je 0x100557d3
push edx
mov ecx, esi
call fcn.10054dbc
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x10055751
xor esi, esi
cmp dword [ebx + 0x10], esi
jbe 0x100557fa
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
call fcn.10054e2c
inc esi
cmp esi, dword [ebx + 0x10]
jb 0x100557e9
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x10], 0
test eax, eax
jbe 0x1005595f
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0x454c4946
mov dword [ebp - 0x18], eax
jne 0x10055950
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
jne 0x10055950
cmp dword [ebp - 0x10], 0x10
jae 0x1005583f
cmp byte [ebx + 0x94], cl
je 0x10055950
mov esi, dword [ebp - 0x18]
test byte [esi + 6], 1
jne 0x10055855
cmp byte [ebx + 0x95], 0
je 0x10055950
mov al, byte [esi + 6]
mov edi, dword [esi + 0x28]
or dword [ebp - 0x28], 0xffffffff
shr al, 1
mov dword [esi + 0x10], edi
test al, 1
jne 0x10055899
and dword [ebp - 0x34], 0
cmp dword [esi + 0x34], 0
jbe 0x10055899
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov ecx, dword [edx + ecx*4]
cmp dword [ecx + 8], 0
je 0x10055893
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
add eax, 8
cmp ecx, dword [esi + 0x34]
jb 0x10055878
jmp 0x10055899
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
test edi, edi
jne 0x10055923
cmp dword [ebp - 0x10], 0x10
jae 0x100558d3
and dword [ebp - 0x20], edi
cmp dword [esi + 0x34], edi
jbe 0x10055923
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x18]
mov ecx, dword [edi]
mov ecx, dword [eax + ecx*4]
call fcn.10052848
or eax, edx
jne 0x100558d3
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add edi, 8
cmp eax, dword [esi + 0x34]
jb 0x100558b2
jmp 0x10055923
lea ecx, [esi + 0x24]
call fcn.10054c76
mov edi, eax
or dword [edi], 0xffffffff
or dword [edi + 4], 0xffffffff
lea edx, [ebp + 0x400]
mov ecx, str._NONAME__
mov eax, edx
mov byte [ebp + 0x400], 0x5b
sub ecx, eax
inc edx
mov al, byte [edx + ecx]
mov byte [edx], al
test al, al
jne 0x100558fa
mov ecx, dword [ebp - 0x10]
call fcn.10001cdc
lea eax, [ebp + 0x400]
push eax
lea ecx, [edi + 8]
call fcn.10003372
and dword [edi + 0x10], 0
mov byte [edi + 0x14], 3
and dword [ebp - 0x20], 0
cmp dword [esi + 0x28], 0
jbe 0x10055950
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
push edi
mov ecx, esi
call fcn.100537f5
test eax, eax
jl 0x100559a9
dec dword [esi + 0x10]
mov esi, dword [ebp - 0x18]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0x28]
jb 0x1005592d
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x10055809
cmp dword [ebx + 0x10], 9
jbe 0x10055b2f
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x24]
xor edi, edi
cmp dword [esi + 0x34], edi
jbe 0x10055b2f
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov eax, dword [eax + edi*8]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 4]
mov edx, str._SDS
mov dword [ebp - 0x28], eax
call fcn.10003407
test al, al
jne 0x10055a7b
inc edi
cmp edi, dword [esi + 0x34]
jb 0x1005597a
jmp 0x10055b2f
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x50], 0xffffffff
or dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x5c], eax
mov al, byte [esi + 6]
shr al, 1
mov dword [ebp - 0x58], edi
test al, 1
je 0x100559cc
mov dword [ebp - 0x54], 0xfffffffe
jmp 0x100559dc
mov eax, dword [ebp - 0x28]
test eax, eax
jge 0x100559d9
or dword [ebp - 0x54], 0xffffffff
jmp 0x100559dc
mov dword [ebp - 0x54], eax
cmp dword [esi + 0x14], 0
jge 0x100559e8
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
sub esp, 0x14
push 5
pop ecx
mov edi, esp
lea esi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.10054c9d
and dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x34], 0
jbe 0x10055942
mov edi, dword [ebp - 0x34]
mov esi, eax
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x10055a23
cmp edi, dword [ebp - 0x28]
je 0x10055a6d
cmp dword [ebp - 0x10], 8
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov eax, dword [eax + edi*8]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 4]
jne 0x10055a46
mov edx, str._Bad
call fcn.10003407
test al, al
jne 0x10055a6d
mov eax, dword [ebp - 0x34]
sub esp, 0x14
push 5
pop ecx
mov edi, esp
mov dword [ebp - 0x54], eax
lea esi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov byte [ebx + 0xbc], 1
call fcn.10054c9d
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x34]
inc edi
mov dword [ebp - 0x34], edi
cmp edi, dword [esi + 0x34]
jb 0x10055a15
jmp 0x10055945
and dword [ebp - 0x18], 0
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebx + 0x3c]
mov ecx, esi
push dword [ebx + 0x38]
mov byte [ebp - 4], 3
push dword [ebx + 0x24]
push edi
push eax
call fcn.1005387f
mov esi, eax
test esi, esi
je 0x10055ac5
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x10055ab3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0
call dword [ecx + 8]
jmp 0x100554d1
cmp dword [ebp - 0x18], 0
je 0x10055b1e
mov ecx, dword [ebp - 0x28]
call fcn.10052848
test edx, edx
ja 0x10055b1e
jb 0x10055ae0
cmp eax, 0x20000000
jae 0x10055b1e
lea ecx, [eax + 1]
test ecx, 0x40000
je 0x10055b1e
lea edi, [eax - 0x40000]
lea esi, [ebx + 0x80]
push edi
mov ecx, esi
call fcn.1001aa79
mov edx, dword [esi]
mov ecx, dword [ebp - 0x18]
push edi
call fcn.10021a5b
test eax, eax
jne 0x10055b1e
mov ecx, ebx
call fcn.100550df
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
jmp 0x10055b29
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x10055b2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2e], 0
mov dword [ebp - 0x10], eax
cmp dword [ebx + 4], eax
jbe 0x10055bd3
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebx]
lea esi, [edi + eax]
mov ecx, dword [esi]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
movzx eax, ax
cmp ecx, 5
jne 0x10055b7e
test eax, eax
jne 0x10055b7e
or dword [esi + 0xc], 0xffffffff
jmp 0x10055bc0
push eax
push ecx
mov ecx, ebx
call fcn.10053b31
test eax, eax
jl 0x10055ba5
mov edx, dword [ebx + 0xc]
mov ecx, eax
imul ecx, ecx, 0x14
mov ecx, dword [ecx + edi]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
cmp word [edx + 4], cx
je 0x10055bbd
mov eax, dword [ebp - 0x34]
test byte [eax + 6], 1
je 0x10055bb6
mov byte [ebp - 0x2d], 1
push 0xfffffffffffffffe
jmp 0x10055bbc
mov byte [ebp - 0x2e], 1
push 0xfffffffffffffffd
pop eax
mov dword [esi + 0xc], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x28], 0x14
cmp eax, dword [ebx + 4]
jb 0x10055b48
cmp byte [ebx + 0x94], 0
mov esi, dword [ebx + 4]
je 0x10055c1a
push dword [0x100e58fc]
mov dword [ebx + 0xb0], esi
lea ecx, [ebp - 0x2c]
inc esi
call fcn.1000330c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x98]
mov byte [ebp - 4], 4
call fcn.10054cc7
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
je 0x10055c1a
push dword [ebp - 0x2c]
call fcn.10003deb
pop ecx
cmp byte [ebp - 0x2d], 0
je 0x10055c5b
push dword [0x100e5900]
mov dword [ebx + 0xb4], esi
lea ecx, [ebp - 0x24]
inc esi
call fcn.1000330c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x98]
mov byte [ebp - 4], 5
call fcn.10054cc7
cmp dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
je 0x10055c5b
push dword [ebp - 0x24]
call fcn.10003deb
pop ecx
cmp byte [ebp - 0x2e], 0
je 0x10055c97
push dword [0x100e5904]
lea ecx, [ebp - 0x38]
mov dword [ebx + 0xb8], esi
call fcn.1000330c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 0x98]
mov byte [ebp - 4], 6
call fcn.10054cc7
cmp dword [ebp - 0x38], 0
je 0x10055c97
push dword [ebp - 0x38]
call fcn.10003deb
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0
call dword [ecx + 8]
lea ecx, [ebp - 0xd4]
call fcn.10055100
xor eax, eax
jmp 0x10055ce8
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 0
call dword [eax + 8]
jmp 0x10055629
lea ecx, [ebp - 0x13c]
call fcn.10055100
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0
call dword [ecx + 8]
lea ecx, [ebp - 0xd4]
call fcn.10055100
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x420]
xor ecx, ebp
call fcn.100b0660
add ebp, 0x424
leave
ret