Function at 0x402860
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [0x5915c4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403274
sub esp, 0x38
lea eax, [0x4b6ec0]
mov dword [esp], eax
call fcn.0040ef60
mov eax, dword [esp + 4]
mov dword [eax + 4], 3
lea ecx, [0x4c9026]
mov dword [eax], ecx
lea ecx, [0x591a01]
mov dword [eax + 8], ecx
mov dword [eax + 0x14], 3
lea ecx, [0x4c9029]
mov dword [eax + 0x10], ecx
lea ecx, [0x591a00]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x24], 4
lea ecx, [0x4c913c]
mov dword [eax + 0x20], ecx
lea ecx, [0x591a09]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x34], 9
lea ecx, [0x4c9a22]
mov dword [eax + 0x30], ecx
lea ecx, [0x591a0c]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x44], 6
lea ecx, [0x4c93e0]
mov dword [eax + 0x40], ecx
lea ecx, [0x591a0e]
mov dword [eax + 0x48], ecx
mov dword [eax + 0x54], 3
lea ecx, [0x4c902c]
mov dword [eax + 0x50], ecx
lea ecx, [0x591a0f]
mov dword [eax + 0x58], ecx
mov dword [0x551edc], 6
mov dword [0x551ee0], 6
mov ecx, dword [0x591668]
test ecx, ecx
je 0x40294c
call fcn.0046d780
mov dword [edi], eax
mov ecx, dword [0x551ed8]
mov dword [edi + 4], ecx
mov dword [0x551ed8], eax
call fcn.004032f0
mov eax, dword [esp]
mov dword [esp + 0x28], eax
cmp eax, 2
jge 0x402b2e
mov ecx, dword [0x551ee0]
mov edx, dword [0x551edc]
add edx, 5
mov ebx, dword [0x551ed8]
cmp ecx, edx
jae 0x4029da
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
lea eax, [0x4bf460]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x551ee0], eax
mov eax, dword [0x591668]
test eax, eax
je 0x4029ce
call fcn.0046d780
mov dword [edi], ecx
mov eax, dword [0x551ed8]
mov dword [edi + 4], eax
mov dword [0x551ed8], ecx
mov eax, dword [esp + 0x28]
mov ebx, ecx
mov dword [0x551edc], edx
lea ecx, [edx - 5]
shl ecx, 4
mov dword [ebx + ecx + 4], 6
mov byte [ebx + ecx + 0xc], 0
mov byte [ebx + ecx + 0xd], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402a13
mov edx, dword [ebx + ecx]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 8]
mov dword [edi + 4], edx
lea edx, [0x4c93e6]
mov dword [ebx + ecx], edx
lea edx, [0x591a0d]
mov dword [ebx + ecx + 8], edx
mov dword [ebx + ecx + 0x14], 4
mov byte [ebx + ecx + 0x1c], 0
mov byte [ebx + ecx + 0x1d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402a54
mov edx, dword [ebx + ecx + 0x10]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x18]
mov dword [edi + 4], edx
lea edx, [0x4c9140]
mov dword [ebx + ecx + 0x10], edx
lea edx, [0x591a10]
mov dword [ebx + ecx + 0x18], edx
mov dword [ebx + ecx + 0x24], 5
mov byte [ebx + ecx + 0x2c], 0
mov byte [ebx + ecx + 0x2d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402a96
mov edx, dword [ebx + ecx + 0x20]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x28]
mov dword [edi + 4], edx
lea edx, [0x4c9281]
mov dword [ebx + ecx + 0x20], edx
lea edx, [0x591a12]
mov dword [ebx + ecx + 0x28], edx
mov dword [ebx + ecx + 0x34], 5
mov byte [ebx + ecx + 0x3c], 0
mov byte [ebx + ecx + 0x3d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402ad8
mov edx, dword [ebx + ecx + 0x30]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x38]
mov dword [edi + 4], edx
lea edx, [0x4c9286]
mov dword [ebx + ecx + 0x30], edx
lea edx, [0x591a13]
mov dword [ebx + ecx + 0x38], edx
mov dword [ebx + ecx + 0x44], 5
mov byte [ebx + ecx + 0x4c], 0
mov byte [ebx + ecx + 0x4d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402b1a
mov edx, dword [ebx + ecx + 0x40]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x48]
mov dword [edi + 4], edx
lea edx, [0x4c928b]
mov dword [ebx + ecx + 0x40], edx
lea edx, [0x591a11]
mov dword [ebx + ecx + 0x48], edx
cmp eax, 3
jge 0x402cfe
mov ecx, dword [0x551ee0]
mov edx, dword [0x551edc]
add edx, 5
mov ebx, dword [0x551ed8]
cmp ecx, edx
jae 0x402baa
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
lea eax, [0x4bf460]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x551ee0], eax
mov eax, dword [0x591668]
test eax, eax
je 0x402b9e
call fcn.0046d780
mov dword [edi], ecx
mov eax, dword [0x551ed8]
mov dword [edi + 4], eax
mov dword [0x551ed8], ecx
mov eax, dword [esp + 0x28]
mov ebx, ecx
mov dword [0x551edc], edx
lea ecx, [edx - 5]
shl ecx, 4
mov dword [ebx + ecx + 4], 3
mov byte [ebx + ecx + 0xc], 0
mov byte [ebx + ecx + 0xd], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402be3
mov edx, dword [ebx + ecx]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 8]
mov dword [edi + 4], edx
lea edx, [0x4c902f]
mov dword [ebx + ecx], edx
lea edx, [0x591a02]
mov dword [ebx + ecx + 8], edx
mov dword [ebx + ecx + 0x14], 4
mov byte [ebx + ecx + 0x1c], 0
mov byte [ebx + ecx + 0x1d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402c24
mov edx, dword [ebx + ecx + 0x10]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x18]
mov dword [edi + 4], edx
lea edx, [0x4c9144]
mov dword [ebx + ecx + 0x10], edx
lea edx, [0x591a03]
mov dword [ebx + ecx + 0x18], edx
mov dword [ebx + ecx + 0x24], 4
mov byte [ebx + ecx + 0x2c], 0
mov byte [ebx + ecx + 0x2d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402c66
mov edx, dword [ebx + ecx + 0x20]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x28]
mov dword [edi + 4], edx
lea edx, [0x4c9148]
mov dword [ebx + ecx + 0x20], edx
lea edx, [0x591a07]
mov dword [ebx + ecx + 0x28], edx
mov dword [ebx + ecx + 0x34], 4
mov byte [ebx + ecx + 0x3c], 0
mov byte [ebx + ecx + 0x3d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402ca8
mov edx, dword [ebx + ecx + 0x30]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x38]
mov dword [edi + 4], edx
lea edx, [0x4c914c]
mov dword [ebx + ecx + 0x30], edx
lea edx, [0x591a08]
mov dword [ebx + ecx + 0x38], edx
mov dword [ebx + ecx + 0x44], 3
mov byte [ebx + ecx + 0x4c], 0
mov byte [ebx + ecx + 0x4d], 0
mov edx, dword [0x591668]
test edx, edx
je 0x402cea
mov edx, dword [ebx + ecx + 0x40]
call fcn.0046d780
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x48]
mov dword [edi + 4], edx
lea edx, [0x4c9032]
mov dword [ebx + ecx + 0x40], edx
lea edx, [0x591a0a]
mov dword [ebx + ecx + 0x48], edx
cmp eax, 4
jge 0x402e4a
mov eax, dword [0x551ee0]
mov ecx, dword [0x551edc]
add ecx, 3
mov edx, dword [0x551ed8]
cmp eax, ecx
jae 0x402d7a
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
lea eax, [0x4bf460]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x551ee0], eax
mov eax, dword [0x591668]
test eax, eax
je 0x402d6e
call fcn.0046d780
mov dword [edi], ecx
mov eax, dword [0x551ed8]
mov dword [edi + 4], eax
mov dword [0x551ed8], ecx
mov eax, edx
mov edx, ecx
mov ecx, eax
mov dword [0x551edc], ecx
lea eax, [ecx - 3]
shl eax, 4
mov dword [edx + eax + 4], 7
mov byte [edx + eax + 0xc], 0
mov byte [edx + eax + 0xd], 0
mov ecx, dword [0x591668]
test ecx, ecx
je 0x402db3
mov ecx, dword [edx + eax]
call fcn.0046d780
mov dword [edi], ecx
mov ecx, dword [edx + eax + 8]
mov dword [edi + 4], ecx
lea ecx, [0x4c9580]
mov dword [edx + eax], ecx
lea ecx, [0x591a04]
mov dword [edx + eax + 8], ecx
mov dword [edx + eax + 0x14], 8
mov byte [edx + eax + 0x1c], 0
mov byte [edx + eax + 0x1d], 0
mov ecx, dword [0x591668]
test ecx, ecx
je 0x402df4
mov ecx, dword [edx + eax + 0x10]
call fcn.0046d780
mov dword [edi], ecx
mov ecx, dword [edx + eax + 0x18]
mov dword [edi + 4], ecx
lea ecx, [0x4c977d]
mov dword [edx + eax + 0x10], ecx
lea ecx, [0x591a05]
mov dword [edx + eax + 0x18], ecx
mov dword [edx + eax + 0x24], 8
mov byte [edx + eax + 0x2c], 0
mov byte [edx + eax + 0x2d], 0
mov ecx, dword [0x591668]
test ecx, ecx
je 0x402e36
mov ecx, dword [edx + eax + 0x20]
call fcn.0046d780
mov dword [edi], ecx
mov ecx, dword [edx + eax + 0x28]
mov dword [edi + 4], ecx
lea ecx, [0x4c9785]
mov dword [edx + eax + 0x20], ecx
lea ecx, [0x591a06]
mov dword [edx + eax + 0x28], ecx
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.004032b0
mov eax, dword [esp + 8]
test eax, eax
je 0x403270
mov dword [esp + 0x24], eax
mov dword [esp], 0x80000000
mov dword [esp + 4], 0
call fcn.004032b0
mov eax, dword [esp + 8]
mov dword [0x5915c0], eax
mov dword [esp], 1
mov dword [esp + 4], 0
call fcn.004032b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a10], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a0c], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x200
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a11], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x80000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a12], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x100000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a13], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x800000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a0d], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x2000000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a00], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x8000000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a0b], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x1000
call fcn.00403280
movzx eax, byte [esp + 8]
test al, al
je 0x402fc2
movzx eax, byte [0x591a0b]
jmp 0x402fc4
xor eax, eax
mov byte [0x591a0a], al
movzx eax, byte [0x591a0b]
test al, al
jne 0x402fde
xor eax, eax
xor ecx, ecx
jmp 0x403097
call fcn.004032d0
mov eax, dword [esp]
mov dword [esp + 0x34], eax
mov dword [esp + 4], 2
call fcn.00403280
movzx eax, byte [esp + 8]
test al, al
jne 0x403004
xor eax, eax
jmp 0x40301d
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 4
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [esp + 0x23], al
test al, al
jne 0x403029
xor ecx, ecx
jmp 0x403049
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00403280
movzx eax, byte [esp + 8]
mov ecx, eax
movzx eax, byte [esp + 0x23]
test cl, cl
jne 0x403051
xor ecx, ecx
jmp 0x403097
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0x40
call fcn.00403280
movzx eax, byte [esp + 8]
test al, al
jne 0x403077
movzx eax, byte [esp + 0x23]
xor ecx, ecx
jmp 0x403097
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], pe_nt_image_headers32
call fcn.00403280
movzx eax, byte [esp + 8]
mov ecx, eax
movzx eax, byte [esp + 0x23]
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], 0x10000000
call fcn.00403280
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x23]
and eax, ecx
mov byte [0x591a02], al
mov eax, dword [esp + 0x24]
cmp eax, 7
jb 0x40326c
mov dword [esp], 7
mov dword [esp + 4], 0
call fcn.004032b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a07], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00403280
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x23]
and ecx, eax
mov byte [0x591a03], cl
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x100
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a08], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x200
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a09], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x80000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a01], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x20000000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a0f], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x10000
call fcn.00403280
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x22]
and ecx, eax
mov byte [0x591a04], cl
test cl, cl
je 0x403213
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x40000000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a05], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x80000000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a06], al
mov dword [esp], 0x80000000
mov dword [esp + 4], 0
call fcn.004032b0
cmp dword [esp + 8], 0x80000001
jae 0x403235
add esp, 0x38
ret
mov dword [esp], 0x80000001
mov dword [esp + 4], 0
call fcn.004032b0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], 0x8000000
call fcn.00403280
movzx eax, byte [esp + 8]
mov byte [0x591a0e], al
add esp, 0x38
ret
add esp, 0x38
ret
add esp, 0x38
ret
call fcn.0046c370
jmp fcn.00402860