Function at 0x401f80
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [0x5d8d34]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40270a
sub esp, 0x30
lea eax, [0x4d31a0]
mov dword [esp], eax
call fcn.0040b8e0
mov eax, dword [esp + 4]
mov dword [eax + 4], 3
lea ecx, [0x4eb2e5]
mov dword [eax], ecx
lea ecx, [0x5d91a1]
mov dword [eax + 8], ecx
mov dword [eax + 0x14], 3
lea ecx, [0x4eb2e8]
mov dword [eax + 0x10], ecx
lea ecx, [0x5d91a0]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x24], 4
lea ecx, [0x4eb3fb]
mov dword [eax + 0x20], ecx
lea ecx, [0x5d91a9]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x34], 9
lea ecx, [0x4ebd35]
mov dword [eax + 0x30], ecx
lea ecx, [0x5d91ac]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x44], 6
lea ecx, [0x4eb6a9]
mov dword [eax + 0x40], ecx
lea ecx, [0x5d91ae]
mov dword [eax + 0x48], ecx
mov dword [eax + 0x54], 3
lea ecx, [0x4eb2eb]
mov dword [eax + 0x50], ecx
lea ecx, [0x5d91af]
mov dword [eax + 0x58], ecx
mov dword [0x5ba234], 6
mov dword [0x5ba238], 6
mov ecx, dword [0x5d8e30]
test ecx, ecx
je 0x40206c
call fcn.0046cb40
mov dword [edi], eax
mov ecx, dword [0x5ba230]
mov dword [edi + 4], ecx
mov dword [0x5ba230], eax
call fcn.00402760
mov eax, dword [esp]
mov dword [esp + 0x28], eax
cmp eax, 2
jge 0x40220b
mov ecx, dword [0x5ba238]
mov edx, dword [0x5ba234]
add edx, 5
mov ebx, dword [0x5ba230]
cmp ecx, edx
jae 0x4020fa
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
lea eax, [0x4ded80]
mov dword [esp + 0x10], eax
call fcn.00467eb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x5ba238], eax
mov eax, dword [0x5d8e30]
test eax, eax
je 0x4020ee
call fcn.0046cb40
mov dword [edi], ecx
mov eax, dword [0x5ba230]
mov dword [edi + 4], eax
mov dword [0x5ba230], ecx
mov eax, dword [esp + 0x28]
mov ebx, ecx
mov dword [0x5ba234], edx
lea ecx, [edx - 5]
shl ecx, 4
mov dword [ebx + ecx + 4], 6
mov word [ebx + ecx + 0xc], 0
mov edx, dword [0x5d8e30]
test edx, edx
je 0x40216c
mov edx, dword [ebx + ecx]
call fcn.0046cba0
mov dword [edi], edx
mov edx, dword [ebx + ecx + 8]
mov dword [edi + 4], edx
mov edx, dword [ebx + ecx + 0x10]
mov dword [edi + 8], edx
mov edx, dword [ebx + ecx + 0x18]
mov dword [edi + 0xc], edx
mov edx, dword [ebx + ecx + 0x20]
mov dword [edi + 0x10], edx
mov edx, dword [ebx + ecx + 0x28]
mov dword [edi + 0x14], edx
mov edx, dword [ebx + ecx + 0x30]
mov dword [edi + 0x18], edx
mov edx, dword [ebx + ecx + 0x38]
mov dword [edi + 0x1c], edx
mov edx, dword [ebx + ecx + 0x40]
call fcn.0046cb40
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x48]
mov dword [edi + 4], edx
lea edx, [0x4eb6af]
mov dword [ebx + ecx], edx
lea edx, [0x5d91ad]
mov dword [ebx + ecx + 8], edx
mov dword [ebx + ecx + 0x14], 4
mov word [ebx + ecx + 0x1c], 0
lea edx, [0x4eb3ff]
mov dword [ebx + ecx + 0x10], edx
lea edx, [0x5d91b0]
mov dword [ebx + ecx + 0x18], edx
mov dword [ebx + ecx + 0x24], 5
mov word [ebx + ecx + 0x2c], 0
lea edx, [0x4eb544]
mov dword [ebx + ecx + 0x20], edx
lea edx, [0x5d91b2]
mov dword [ebx + ecx + 0x28], edx
mov dword [ebx + ecx + 0x34], 5
mov word [ebx + ecx + 0x3c], 0
lea edx, [0x4eb549]
mov dword [ebx + ecx + 0x30], edx
lea edx, [0x5d91b3]
mov dword [ebx + ecx + 0x38], edx
mov dword [ebx + ecx + 0x44], 5
mov word [ebx + ecx + 0x4c], 0
lea edx, [0x4eb54e]
mov dword [ebx + ecx + 0x40], edx
lea edx, [0x5d91b1]
mov dword [ebx + ecx + 0x48], edx
cmp eax, 3
jge 0x402398
mov ecx, dword [0x5ba238]
mov edx, dword [0x5ba234]
add edx, 5
mov ebx, dword [0x5ba230]
cmp ecx, edx
jae 0x402287
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
lea eax, [0x4ded80]
mov dword [esp + 0x10], eax
call fcn.00467eb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x5ba238], eax
mov eax, dword [0x5d8e30]
test eax, eax
je 0x40227b
call fcn.0046cb40
mov dword [edi], ecx
mov eax, dword [0x5ba230]
mov dword [edi + 4], eax
mov dword [0x5ba230], ecx
mov eax, dword [esp + 0x28]
mov ebx, ecx
mov dword [0x5ba234], edx
lea ecx, [edx - 5]
shl ecx, 4
mov dword [ebx + ecx + 4], 3
mov word [ebx + ecx + 0xc], 0
mov edx, dword [0x5d8e30]
test edx, edx
je 0x4022f9
mov edx, dword [ebx + ecx]
call fcn.0046cba0
mov dword [edi], edx
mov edx, dword [ebx + ecx + 8]
mov dword [edi + 4], edx
mov edx, dword [ebx + ecx + 0x10]
mov dword [edi + 8], edx
mov edx, dword [ebx + ecx + 0x18]
mov dword [edi + 0xc], edx
mov edx, dword [ebx + ecx + 0x20]
mov dword [edi + 0x10], edx
mov edx, dword [ebx + ecx + 0x28]
mov dword [edi + 0x14], edx
mov edx, dword [ebx + ecx + 0x30]
mov dword [edi + 0x18], edx
mov edx, dword [ebx + ecx + 0x38]
mov dword [edi + 0x1c], edx
mov edx, dword [ebx + ecx + 0x40]
call fcn.0046cb40
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x48]
mov dword [edi + 4], edx
lea edx, [0x4eb2ee]
mov dword [ebx + ecx], edx
lea edx, [0x5d91a2]
mov dword [ebx + ecx + 8], edx
mov dword [ebx + ecx + 0x14], 4
mov word [ebx + ecx + 0x1c], 0
lea edx, [0x4eb403]
mov dword [ebx + ecx + 0x10], edx
lea edx, [0x5d91a3]
mov dword [ebx + ecx + 0x18], edx
mov dword [ebx + ecx + 0x24], 4
mov word [ebx + ecx + 0x2c], 0
lea edx, [0x4eb407]
mov dword [ebx + ecx + 0x20], edx
lea edx, [0x5d91a7]
mov dword [ebx + ecx + 0x28], edx
mov dword [ebx + ecx + 0x34], 4
mov word [ebx + ecx + 0x3c], 0
lea edx, [0x4eb40b]
mov dword [ebx + ecx + 0x30], edx
lea edx, [0x5d91a8]
mov dword [ebx + ecx + 0x38], edx
mov dword [ebx + ecx + 0x44], 3
mov word [ebx + ecx + 0x4c], 0
lea edx, [0x4eb2f1]
mov dword [ebx + ecx + 0x40], edx
lea edx, [0x5d91aa]
mov dword [ebx + ecx + 0x48], edx
cmp eax, 4
jge 0x4024bf
mov eax, dword [0x5ba238]
mov ecx, dword [0x5ba234]
add ecx, 3
mov edx, dword [0x5ba230]
cmp eax, ecx
jae 0x402414
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
lea eax, [0x4ded80]
mov dword [esp + 0x10], eax
call fcn.00467eb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x5ba238], eax
mov eax, dword [0x5d8e30]
test eax, eax
je 0x402408
call fcn.0046cb40
mov dword [edi], ecx
mov eax, dword [0x5ba230]
mov dword [edi + 4], eax
mov dword [0x5ba230], ecx
mov eax, edx
mov edx, ecx
mov ecx, eax
mov dword [0x5ba234], ecx
lea eax, [ecx - 3]
shl eax, 4
mov dword [edx + eax + 4], 7
mov word [edx + eax + 0xc], 0
mov ecx, dword [0x5d8e30]
test ecx, ecx
je 0x402466
mov ecx, dword [edx + eax]
call fcn.0046cb80
mov dword [edi], ecx
mov ecx, dword [edx + eax + 8]
mov dword [edi + 4], ecx
mov ecx, dword [edx + eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [edx + eax + 0x18]
mov dword [edi + 0xc], ecx
mov ecx, dword [edx + eax + 0x20]
mov dword [edi + 0x10], ecx
mov ecx, dword [edx + eax + 0x28]
mov dword [edi + 0x14], ecx
lea ecx, [0x4eb848]
mov dword [edx + eax], ecx
lea ecx, [0x5d91a4]
mov dword [edx + eax + 8], ecx
mov dword [edx + eax + 0x14], 8
mov word [edx + eax + 0x1c], 0
lea ecx, [0x4eba5c]
mov dword [edx + eax + 0x10], ecx
lea ecx, [0x5d91a5]
mov dword [edx + eax + 0x18], ecx
mov dword [edx + eax + 0x24], 8
mov word [edx + eax + 0x2c], 0
lea ecx, [0x4eba64]
mov dword [edx + eax + 0x20], ecx
lea ecx, [0x5d91a6]
mov dword [edx + eax + 0x28], ecx
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.00402720
mov eax, dword [esp + 8]
test eax, eax
je 0x402706
mov dword [esp + 0x24], eax
mov dword [esp], 0x80000000
mov dword [esp + 4], 0
call fcn.00402720
mov eax, dword [esp + 8]
mov dword [0x5d8d20], eax
mov dword [esp], 1
mov dword [esp + 4], 0
call fcn.00402720
mov eax, dword [esp + 0x10]
test eax, 1
setne cl
mov byte [0x5d91b0], cl
test eax, 2
setne cl
mov byte [0x5d91ac], cl
test eax, 0x200
setne cl
mov byte [0x5d91b1], cl
test eax, 0x80000
setne cl
mov byte [0x5d91b2], cl
test eax, 0x100000
setne cl
mov byte [0x5d91b3], cl
test eax, 0x800000
setne cl
mov byte [0x5d91ad], cl
test eax, 0x2000000
setne cl
mov byte [0x5d91a0], cl
test eax, 0x1000
setne cl
test eax, 0x8000000
setne dl
mov byte [0x5d91ab], dl
and ecx, edx
mov byte [0x5d91aa], cl
test eax, 0x8000000
jne 0x4025a6
xor ecx, ecx
xor edx, edx
jmp 0x4025e9
mov dword [esp + 0x2c], eax
call fcn.00402740
mov eax, dword [esp]
test eax, 2
je 0x4025c3
test eax, 4
setne cl
jmp 0x4025c5
xor ecx, ecx
test cl, cl
je 0x4025e1
test eax, 0x20
je 0x4025e1
test eax, 0x40
je 0x4025e1
test eax, 0x80
setne al
jmp 0x4025e3
xor eax, eax
mov edx, eax
mov eax, dword [esp + 0x2c]
test eax, 0x10000000
setne al
and eax, ecx
mov byte [0x5d91a2], al
mov eax, dword [esp + 0x24]
cmp eax, 7
jb 0x402702
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], cl
mov dword [esp], 7
mov dword [esp + 4], 0
call fcn.00402720
mov eax, dword [esp + 0xc]
test eax, 8
setne cl
mov byte [0x5d91a7], cl
test eax, 0x20
setne cl
movzx edx, byte [esp + 0x23]
and edx, ecx
mov byte [0x5d91a3], dl
test eax, 0x100
setne cl
mov byte [0x5d91a8], cl
test eax, 0x200
setne cl
mov byte [0x5d91a9], cl
test eax, 0x80000
setne cl
mov byte [0x5d91a1], cl
test eax, 0x20000000
setne cl
mov byte [0x5d91af], cl
test eax, 0x10000
setne cl
movzx edx, byte [esp + 0x22]
and edx, ecx
mov byte [0x5d91a4], dl
test dl, dl
je 0x4026b6
test eax, 0x40000000
setne cl
mov byte [0x5d91a5], cl
test eax, 0x80000000
setne al
mov byte [0x5d91a6], al
mov dword [esp], 0x80000000
mov dword [esp + 4], 0
call fcn.00402720
cmp dword [esp + 8], 0x80000001
jae 0x4026d8
add esp, 0x30
ret
mov dword [esp], 0x80000001
mov dword [esp + 4], 0
call fcn.00402720
mov eax, dword [esp + 0x14]
test eax, 0x8000000
setne al
mov byte [0x5d91ae], al
add esp, 0x30
ret
add esp, 0x30
ret
add esp, 0x30
ret
call fcn.0046b730
jmp fcn.00401f80