Function at 0x40c090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4848eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x47c
mov eax, dword [esp + 0x48c]
push esi
mov esi, dword [eax + 0x20]
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0xc]
cmp eax, 1
mov dword [esp + 0x30], eax
jg 0x40c0de
xor eax, eax
pop esi
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
add esp, 0x488
ret
push ebx
push ebp
lea ecx, [esp + 0x68]
push edi
or edi, 0xffffffff
mov dword [esp + 0x6c], 0xd
push ecx
mov ecx, dword [esi + 0x28]
push str.Encrypt
mov dword [esp + 0x3c], edi
call fcn.00411b60
cmp dword [esp + 0x6c], 9
jne 0x40c111
mov edx, dword [esp + 0x74]
mov dword [esp + 0x34], edx
mov al, byte [esp + 0x2f]
xor ebx, ebx
mov byte [esp + 0x54], al
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 1
mov ebp, dword [esp + 0x4a0]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x54], 0xffff
mov byte [esp + 0x58], 0x66
call fcn.0040ca80
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x18], eax
jle 0x40c5fd
mov ebx, 0x28
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x14], ebx
jmp 0x40c1ac
mov esi, dword [esp + 0x30]
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x24]
add edi, ecx
mov dword [esp + 0x7c], 0xd
cmp dword [edi], 0xffffffff
je 0x40c5fb
mov eax, dword [ebp + 8]
lea edx, [esp + 0x44]
push edx
push 1
push eax
mov ecx, ebp
call fcn.0040a8f0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov dword [ebx + eax], ecx
mov edx, dword [esi + 4]
mov esi, dword [edi]
mov eax, dword [ebp + 4]
add edx, esi
mov dword [ebx + eax + 4], edx
mov eax, dword [ebp + 4]
mov ecx, dword [edi + 4]
mov dword [ebx + eax + 8], ecx
mov eax, dword [ebp + 4]
mov edx, dword [edi + 8]
mov cl, 0x6e
mov dword [ebx + eax + 0x24], edx
mov eax, dword [ebp + 4]
mov edx, dword [ebx + eax + 0x24]
cmp edx, 1
je 0x40c221
test edx, edx
jne 0x40c21a
mov cl, 0x66
jmp 0x40c223
cmp dword [ebx + eax + 0x24], 2
jne 0x40c223
mov cl, 0x6e
mov byte [ebx + eax + 0xc], cl
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
lea esi, [ebx + eax + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x40c5d4
mov edx, dword [edi + 4]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
call fcn.00413a60
push eax
mov dword [esp + 0x24], eax
call fcn.0040bfa0
add esp, 4
test eax, eax
jne 0x40c5d4
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + eax + 8]
mov edx, dword [ebx + eax]
push ecx
push edx
lea eax, [esp + 0x94]
push str._d__d_obj_n
push eax
call fcn.004655fb
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
not ecx
dec ecx
sub eax, edx
mov ebx, edx
lea edi, [esp + ecx + 0x8c]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10], edi
sub edi, ecx
cmp eax, edi
jae 0x40c3a6
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c2cd
mov eax, edx
sub eax, ecx
cmp edi, eax
jb 0x40c2cf
mov eax, edi
test ecx, ecx
jne 0x40c2d7
xor edx, edx
jmp 0x40c2d9
sub edx, ecx
add eax, edx
test eax, eax
mov dword [esp + 0x38], eax
jge 0x40c2e5
xor eax, eax
push eax
call fcn.0047c2dc
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x40c32b
jmp 0x40c307
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0040ad90
mov eax, dword [esp + 0x24]
add esp, 8
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x40c303
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, esi
call fcn.0040a3d0
mov edx, dword [esi + 8]
push eax
push edx
push ebx
mov ecx, esi
call fcn.0040a3d0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040a3c0
mov eax, dword [esi + 4]
push eax
call fcn.0047c305
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add esp, 4
lea ecx, [edx + eax]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
jne 0x40c392
xor ecx, ecx
mov dword [esi + 4], edx
mov ecx, edx
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c447
mov ecx, dword [esi + 8]
mov dword [esi + 4], edx
sub ecx, eax
add ecx, edx
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c447
mov eax, edx
sub eax, ebx
cmp eax, edi
jae 0x40c408
lea ecx, [edi + ebx]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.0040a3d0
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
push eax
sub eax, ebx
push edx
mov ecx, esi
lea eax, [esp + eax + 0x94]
push eax
call fcn.0040a3d0
mov ecx, dword [esi + 8]
lea edx, [esp + 0x8c]
sub ecx, ebx
lea eax, [esp + 0x8c]
lea ecx, [esp + ecx + 0x8c]
cmp edx, ecx
je 0x40c444
lea edx, [esp + 0x8c]
sub ebx, edx
mov dl, byte [eax]
mov byte [eax + ebx], dl
inc eax
cmp eax, ecx
jne 0x40c3fc
jmp 0x40c444
test edi, edi
jbe 0x40c447
push edx
push edx
sub edx, edi
mov ecx, esi
push edx
call fcn.0040a3d0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
cmp ebx, eax
je 0x40c42e
mov dl, byte [eax - 1]
dec eax
dec ecx
cmp eax, ebx
mov byte [ecx], dl
jne 0x40c423
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.0040ad70
add esp, 0xc
add dword [esi + 8], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, 8
jne 0x40c45b
push esi
push ecx
call fcn.0040ba60
jmp 0x40c467
cmp eax, 5
je 0x40c46a
push esi
push ecx
call fcn.0040b070
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.00411e80
mov edi, str._nendobj
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 8]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0xc]
mov ebx, edx
not ecx
dec ecx
sub eax, edx
add ecx, str._nendobj
mov edi, ecx
mov dword [esp + 0x10], ecx
sub edi, str._nendobj
cmp eax, edi
jae 0x40c555
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c4b5
mov eax, edx
sub eax, ecx
cmp edi, eax
jb 0x40c4b7
mov eax, edi
test ecx, ecx
jne 0x40c4bf
xor edx, edx
jmp 0x40c4c1
sub edx, ecx
add eax, edx
test eax, eax
mov dword [esp + 0x20], eax
jge 0x40c4cd
xor eax, eax
push eax
call fcn.0047c2dc
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push ebx
push ecx
mov ecx, esi
call fcn.0040a3d0
mov edx, dword [esp + 0x10]
push eax
push edx
push str._nendobj
mov ecx, esi
call fcn.0040a3d0
push eax
mov eax, dword [esi + 8]
push eax
push ebx
mov ecx, esi
call fcn.0040a3d0
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x3c], eax
call fcn.0047c305
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
add esp, 4
lea edx, [ecx + ebp]
test eax, eax
mov dword [esi + 0xc], edx
jne 0x40c53d
xor ecx, ecx
mov dword [esi + 4], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x4a0]
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c5d0
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebp
sub ecx, eax
add ecx, ebp
mov ebp, dword [esp + 0x4a0]
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c5d0
mov eax, edx
sub eax, ebx
cmp eax, edi
jae 0x40c58f
lea ecx, [edi + ebx]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.0040a3d0
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
push eax
sub eax, ebx
add eax, str._nendobj
push edx
push eax
mov ecx, esi
call fcn.0040a3d0
mov eax, dword [esi + 8]
push ebx
sub eax, ebx
add eax, str._nendobj
jmp 0x40c5ba
test edi, edi
jbe 0x40c5d0
push edx
push edx
sub edx, edi
mov ecx, esi
push edx
call fcn.0040a3d0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
cmp ebx, eax
je 0x40c5b5
mov dl, byte [eax - 1]
dec eax
dec ecx
cmp eax, ebx
mov byte [ecx], dl
jne 0x40c5aa
mov eax, dword [esp + 0x10]
push ebx
push eax
push str._nendobj
call fcn.0040ad70
mov eax, dword [esi + 8]
add esp, 0xc
add eax, edi
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
inc eax
add esi, 0xc
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebx
jl 0x40c1a8
xor ebx, ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40c61c
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x66666667
imul ebp
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebx, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x494], 0xffffffff
call fcn.00409d40
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x488
ret