Function at 0x42167c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x421699
xor al, al
jmp 0x421b12
push 0x10000000
push 0x55f2
push eax
lea ebx, [ebp - 0x14]
call fcn.0042e6b9
mov dword [ebp - 0x44], eax
test eax, eax
je 0x421692
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], eax
jb 0x421b01
jmp 0x4216c5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
cmp ecx, 8
jb 0x421b01
cmp ecx, dword [ebp - 0x14]
ja 0x421b01
add eax, 8
push eax
mov esi, ecx
sub esi, 8
push 0x20
push 0
mov edx, esi
mov ebx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
call fcn.0042151b
test al, al
je 0x421aa2
push dword [ebp - 0x1c]
mov edx, esi
push 1
push 0
call fcn.0042151b
test al, al
je 0x421aa2
push dword [ebp - 0x1c]
mov edx, esi
push 2
push 0
call fcn.0042151b
test al, al
je 0x421aa2
push dword [ebp - 0x1c]
mov edx, esi
push 4
push 0
call fcn.0042151b
test al, al
je 0x421aa2
mov ebx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
test ebx, ebx
jns 0x421757
push eax
call dword [0x2261278]
mov ebx, eax
test ebx, ebx
jle 0x421790
lea eax, [ebp - 0x30]
push eax
push 0x33
call fcn.004154c3
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], ecx
push ecx
mov ecx, eax
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x38], eax
call fcn.00415b6e
test al, al
jne 0x421881
lea esi, [ebp - 0x40]
call fcn.00415b52
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 5], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], esi
cmp esi, 0xc
jb 0x4219cc
mov eax, dword [ebx]
cmp eax, 0xc
jb 0x4219cc
cmp eax, dword [ebp - 0xc]
ja 0x4219cc
mov ecx, dword [ebx + 4]
test ecx, 0x20000000
je 0x4219bb
cmp eax, 0xc
jbe 0x4219bb
test cl, 1
je 0x4219bb
mov al, byte [edi + 0x18]
test al, al
jne 0x4217eb
test ecx, 0x1000
jne 0x4217ff
cmp al, 1
jne 0x4219bb
test ecx, 0x2000
je 0x4219bb
cmp byte [ebp - 0xd], 0
jne 0x4218ff
push 3
pop edi
lea esi, [ebp - 0x552]
call fcn.0041f134
mov esi, eax
call fcn.004284b5
cmp al, 4
jae 0x421825
push 2
pop edi
lea eax, [esi + 0x1d2]
push 0x14
push eax
push 0
lea esi, [ebp - 0x98]
or eax, 0xffffffff
call fcn.0040e5b1
test eax, eax
jle 0x4218e0
cmp edi, 2
jne 0x4218a1
lea esi, [ebp - 0xc0]
mov eax, 0xb7
call fcn.004202a4
lea eax, [ebp - 0x98]
push eax
mov eax, esi
push eax
jmp 0x4218cb
push ebx
push dword [ebp - 0xc]
push esi
call dword [0x2261278]
push eax
push 8
pop eax
mov ecx, esi
call fcn.004214e8
test al, al
jne 0x421894
lea eax, [ebp - 0x40]
call fcn.00415bf6
mov esi, eax
test esi, esi
jne 0x421867
jmp 0x421785
lea esi, [ebp - 0x40]
call fcn.00415b52
jmp 0x421aa2
cmp edi, 3
jne 0x4218c1
lea esi, [ebp - 0x15c]
mov eax, 0xb8
call fcn.004202a4
lea eax, [ebp - 0x98]
push eax
mov eax, esi
jmp 0x421864
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x364]
push eax
call fcn.0042a3dc
test eax, eax
setne al
test al, al
jne 0x4218e9
xor eax, eax
mov word [ebp - 0x364], ax
mov ecx, 0x1ee
lea eax, [ebp - 0x552]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4218f4
mov byte [ebp - 0xd], 1
mov eax, dword [ebx]
sub eax, 0xc
push eax
lea eax, [ebx + 0xc]
push eax
lea edi, [ebp - 0x70]
xor eax, eax
call fcn.0040c9ae
test al, al
je 0x421a9f
xor edi, edi
lea ecx, [ebp - 0x10c]
xor esi, esi
mov al, byte [ebp + esi - 0x70]
call fcn.0040e716
inc esi
add ecx, 4
cmp esi, 0x10
jb 0x421925
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x24]
push ecx
push 1
push edi
lea ecx, [ebp - 0x364]
mov eax, 0x80000001
push ecx
push eax
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], eax
or esi, 0xffffffff
call dword [0x2261070]
test eax, eax
jne 0x4219b1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x24]
call dword [0x226106c]
push dword [ebp - 0x24]
test eax, eax
cmove esi, dword [ebp - 0x28]
call dword [0x2261074]
cmp esi, 4
jne 0x4219b1
cmp dword [ebx + 8], edi
je 0x421a9f
call fcn.0040c793
mov ecx, dword [ebx + 8]
add ecx, dword [ebp - 0x48]
cmp ecx, eax
ja 0x421a9f
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 5], 1
mov eax, dword [ebx]
sub dword [ebp - 0xc], eax
add ebx, eax
cmp dword [ebp - 0xc], 0xc
jae 0x4217a7
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 6]
push 0x40000000
push eax
push dword [edi + 0x40]
lea ebx, [ebp - 0x2c]
call fcn.0042e6b9
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x421aa2
mov ebx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x421a10
mov edx, dword [ecx]
cmp edx, 6
jb 0x421a20
cmp edx, ebx
ja 0x421a20
test byte [ecx + 4], 1
jne 0x421a17
sub ebx, edx
add ecx, edx
cmp ebx, 6
jae 0x4219fb
jmp 0x421a20
lea eax, [ecx + 6]
mov dword [ebp - 0xc], eax
lea eax, [edx - 6]
push dword [ebp - 0xc]
xor ecx, ecx
cmp byte [ebp - 5], cl
setne cl
mov dword [ebp - 0x60], ecx
call fcn.0040e7d2
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
call fcn.0040abd8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x5c], ebx
jne 0x421a5d
cmp dword [ebp - 0xc], ebx
jne 0x421a61
cmp eax, ebx
jne 0x421a6b
lea esi, [ebp - 0x60]
call fcn.00422a77
jmp 0x421aa2
cmp dword [ebp - 0xc], ebx
jne 0x421ab9
mov ecx, dword [edi + 0x3c]
inc ecx
imul ecx, ecx, 0x18
lea esi, [edi + 0x38]
call fcn.0040aaa8
test al, al
je 0x421ae8
mov ecx, dword [edi + 0x3c]
mov eax, ecx
imul eax, eax, 0x18
add eax, dword [esi]
inc ecx
mov dword [edi + 0x3c], ecx
push 0x18
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.0040aba6
jmp 0x421aa2
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub dword [ebp - 0x14], eax
add dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 8
jae 0x4216c2
jmp 0x421b01
push dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
call fcn.00422a90
push 0x18
lea eax, [ebp - 0x60]
push eax
mov dword [edi + 0x3c], ebx
call fcn.0040abd8
mov dword [edi + 0x38], eax
cmp eax, ebx
je 0x421ade
inc dword [edi + 0x3c]
jmp 0x421b01
lea esi, [ebp - 0x60]
call fcn.00422a77
jmp 0x421b01
lea esi, [ebp - 0x60]
call fcn.00422a77
push dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
call fcn.00422a90
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
push dword [ebp - 0x44]
call fcn.0040ab6a
xor eax, eax
cmp eax, dword [edi + 0x3c]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret 4