Function at 0x402120
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x402a89
sub esp, 0x38
lea eax, [0x492780]
mov dword [esp], eax
call fcn.0040cae0
mov eax, dword [esp + 4]
mov dword [eax + 4], 3
lea ecx, [0x4a0936]
mov dword [eax], ecx
lea ecx, [0x52ffe1]
mov dword [eax + 8], ecx
mov dword [eax + 0x14], 3
lea ecx, [0x4a0939]
mov dword [eax + 0x10], ecx
lea ecx, [0x52ffe0]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x24], 4
lea ecx, [0x4a0a04]
mov dword [eax + 0x20], ecx
lea ecx, [0x52ffe9]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x34], 9
lea ecx, [0x4a1189]
mov dword [eax + 0x30], ecx
lea ecx, [0x52ffec]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x44], 6
lea ecx, [0x4a0c09]
mov dword [eax + 0x40], ecx
lea ecx, [0x52ffee]
mov dword [eax + 0x48], ecx
mov dword [eax + 0x54], 3
lea ecx, [0x4a093c]
mov dword [eax + 0x50], ecx
lea ecx, [0x52ffef]
mov dword [eax + 0x58], ecx
mov dword [0x5101ec], 6
mov dword [0x5101f0], 6
mov ecx, dword [0x52fc68]
test ecx, ecx
je 0x40220c
call fcn.004702d0
mov dword [edi], eax
mov ecx, dword [0x5101e8]
mov dword [edi + 4], ecx
mov dword [0x5101e8], eax
call fcn.00402b10
mov eax, dword [esp]
mov dword [esp + 0x28], eax
cmp eax, 2
jge 0x4023ab
mov ecx, dword [0x5101f0]
mov edx, dword [0x5101ec]
add edx, 5
mov ebx, dword [0x5101e8]
cmp ecx, edx
jae 0x40229a
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
lea eax, [0x499b40]
mov dword [esp + 0x10], eax
call fcn.0046bf40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x5101f0], eax
mov eax, dword [0x52fc68]
test eax, eax
je 0x40228e
call fcn.004702d0
mov dword [edi], ecx
mov eax, dword [0x5101e8]
mov dword [edi + 4], eax
mov dword [0x5101e8], ecx
mov eax, dword [esp + 0x28]
mov ebx, ecx
mov dword [0x5101ec], edx
lea ecx, [edx - 5]
shl ecx, 4
mov dword [ebx + ecx + 4], 6
mov word [ebx + ecx + 0xc], 0
mov edx, dword [0x52fc68]
test edx, edx
je 0x40230c
mov edx, dword [ebx + ecx]
call fcn.00470330
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.004702d0
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x48]
mov dword [edi + 4], edx
lea edx, [0x4a0c0f]
mov dword [ebx + ecx], edx
lea edx, [0x52ffed]
mov dword [ebx + ecx + 8], edx
mov dword [ebx + ecx + 0x14], 4
mov word [ebx + ecx + 0x1c], 0
lea edx, [0x4a0a08]
mov dword [ebx + ecx + 0x10], edx
lea edx, [0x52fff0]
mov dword [ebx + ecx + 0x18], edx
mov dword [ebx + ecx + 0x24], 5
mov word [ebx + ecx + 0x2c], 0
lea edx, [0x4a0af8]
mov dword [ebx + ecx + 0x20], edx
lea edx, [0x52fff2]
mov dword [ebx + ecx + 0x28], edx
mov dword [ebx + ecx + 0x34], 5
mov word [ebx + ecx + 0x3c], 0
lea edx, [0x4a0afd]
mov dword [ebx + ecx + 0x30], edx
lea edx, [0x52fff3]
mov dword [ebx + ecx + 0x38], edx
mov dword [ebx + ecx + 0x44], 5
mov word [ebx + ecx + 0x4c], 0
lea edx, [0x4a0b02]
mov dword [ebx + ecx + 0x40], edx
lea edx, [0x52fff1]
mov dword [ebx + ecx + 0x48], edx
cmp eax, 3
jge 0x402538
mov ecx, dword [0x5101f0]
mov edx, dword [0x5101ec]
add edx, 5
mov ebx, dword [0x5101e8]
cmp ecx, edx
jae 0x402427
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
lea eax, [0x499b40]
mov dword [esp + 0x10], eax
call fcn.0046bf40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x5101f0], eax
mov eax, dword [0x52fc68]
test eax, eax
je 0x40241b
call fcn.004702d0
mov dword [edi], ecx
mov eax, dword [0x5101e8]
mov dword [edi + 4], eax
mov dword [0x5101e8], ecx
mov eax, dword [esp + 0x28]
mov ebx, ecx
mov dword [0x5101ec], edx
lea ecx, [edx - 5]
shl ecx, 4
mov dword [ebx + ecx + 4], 3
mov word [ebx + ecx + 0xc], 0
mov edx, dword [0x52fc68]
test edx, edx
je 0x402499
mov edx, dword [ebx + ecx]
call fcn.00470330
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.004702d0
mov dword [edi], edx
mov edx, dword [ebx + ecx + 0x48]
mov dword [edi + 4], edx
lea edx, [0x4a093f]
mov dword [ebx + ecx], edx
lea edx, [0x52ffe2]
mov dword [ebx + ecx + 8], edx
mov dword [ebx + ecx + 0x14], 4
mov word [ebx + ecx + 0x1c], 0
lea edx, [0x4a0a0c]
mov dword [ebx + ecx + 0x10], edx
lea edx, [0x52ffe3]
mov dword [ebx + ecx + 0x18], edx
mov dword [ebx + ecx + 0x24], 4
mov word [ebx + ecx + 0x2c], 0
lea edx, [0x4a0a10]
mov dword [ebx + ecx + 0x20], edx
lea edx, [0x52ffe7]
mov dword [ebx + ecx + 0x28], edx
mov dword [ebx + ecx + 0x34], 4
mov word [ebx + ecx + 0x3c], 0
lea edx, [0x4a0a14]
mov dword [ebx + ecx + 0x30], edx
lea edx, [0x52ffe8]
mov dword [ebx + ecx + 0x38], edx
mov dword [ebx + ecx + 0x44], 3
mov word [ebx + ecx + 0x4c], 0
lea edx, [0x4a0942]
mov dword [ebx + ecx + 0x40], edx
lea edx, [0x52ffea]
mov dword [ebx + ecx + 0x48], edx
cmp eax, 4
jge 0x40265f
mov eax, dword [0x5101f0]
mov ecx, dword [0x5101ec]
add ecx, 3
mov edx, dword [0x5101e8]
cmp eax, ecx
jae 0x4025b4
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
lea eax, [0x499b40]
mov dword [esp + 0x10], eax
call fcn.0046bf40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x5101f0], eax
mov eax, dword [0x52fc68]
test eax, eax
je 0x4025a8
call fcn.004702d0
mov dword [edi], ecx
mov eax, dword [0x5101e8]
mov dword [edi + 4], eax
mov dword [0x5101e8], ecx
mov eax, edx
mov edx, ecx
mov ecx, eax
mov dword [0x5101ec], ecx
lea eax, [ecx - 3]
shl eax, 4
mov dword [edx + eax + 4], 7
mov word [edx + eax + 0xc], 0
mov ecx, dword [0x52fc68]
test ecx, ecx
je 0x402606
mov ecx, dword [edx + eax]
call fcn.00470310
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, [0x4a0d6a]
mov dword [edx + eax], ecx
lea ecx, [0x52ffe4]
mov dword [edx + eax + 8], ecx
mov dword [edx + eax + 0x14], 8
mov word [edx + eax + 0x1c], 0
lea ecx, [0x4a0f36]
mov dword [edx + eax + 0x10], ecx
lea ecx, [0x52ffe5]
mov dword [edx + eax + 0x18], ecx
mov dword [edx + eax + 0x24], 8
mov word [edx + eax + 0x2c], 0
lea ecx, [0x4a0f3e]
mov dword [edx + eax + 0x20], ecx
lea ecx, [0x52ffe6]
mov dword [edx + eax + 0x28], ecx
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.00402ad0
mov eax, dword [esp + 8]
test eax, eax
je 0x402a85
mov dword [esp + 0x24], eax
mov dword [esp], 0x80000000
mov dword [esp + 4], 0
call fcn.00402ad0
mov eax, dword [esp + 8]
mov dword [0x52fb8c], eax
mov dword [esp], 1
mov dword [esp + 4], 0
call fcn.00402ad0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52fff0], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffec], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x200
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52fff1], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x80000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52fff2], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x100000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52fff3], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x800000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffed], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x2000000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe0], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x8000000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffeb], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0x1000
call fcn.00402aa0
movzx eax, byte [esp + 8]
test al, al
je 0x4027d7
movzx eax, byte [0x52ffeb]
jmp 0x4027d9
xor eax, eax
mov byte [0x52ffea], al
movzx eax, byte [0x52ffeb]
test al, al
jne 0x4027f3
xor eax, eax
xor ecx, ecx
jmp 0x4028ac
call fcn.00402af0
mov eax, dword [esp]
mov dword [esp + 0x34], eax
mov dword [esp + 4], 2
call fcn.00402aa0
movzx eax, byte [esp + 8]
test al, al
jne 0x402819
xor eax, eax
jmp 0x402832
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 4
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [esp + 0x23], al
test al, al
jne 0x40283e
xor ecx, ecx
jmp 0x40285e
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov ecx, eax
movzx eax, byte [esp + 0x23]
test cl, cl
jne 0x402866
xor ecx, ecx
jmp 0x4028ac
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0x40
call fcn.00402aa0
movzx eax, byte [esp + 8]
test al, al
jne 0x40288c
movzx eax, byte [esp + 0x23]
xor ecx, ecx
jmp 0x4028ac
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], pe_nt_image_headers32
call fcn.00402aa0
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.00402aa0
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x23]
and eax, ecx
mov byte [0x52ffe2], al
mov eax, dword [esp + 0x24]
cmp eax, 7
jb 0x402a81
mov dword [esp], 7
mov dword [esp + 4], 0
call fcn.00402ad0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe7], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00402aa0
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x23]
and ecx, eax
mov byte [0x52ffe3], cl
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x100
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe8], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x200
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe9], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x80000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe1], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x20000000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffef], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x10000
call fcn.00402aa0
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x22]
and ecx, eax
mov byte [0x52ffe4], cl
test cl, cl
je 0x402a28
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x40000000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe5], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x80000000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffe6], al
mov dword [esp], 0x80000000
mov dword [esp + 4], 0
call fcn.00402ad0
cmp dword [esp + 8], 0x80000001
jae 0x402a4a
add esp, 0x38
ret
mov dword [esp], 0x80000001
mov dword [esp + 4], 0
call fcn.00402ad0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], 0x8000000
call fcn.00402aa0
movzx eax, byte [esp + 8]
mov byte [0x52ffee], al
add esp, 0x38
ret
add esp, 0x38
ret
add esp, 0x38
ret
call fcn.0046eed0
jmp fcn.00402120