Function at 0x40c3d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0b9e
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xf8], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xa8], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xc0], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov esi, eax
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x34], esi
mov word [esi], ax
cmp dword [ebp + 0x1c], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
jne 0x40c621
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x44], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x50], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x54], eax
call fcn.004c8c7f
test edi, edi
mov esi, 0x4fbd20
cmovne esi, edi
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x58], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp + 0x1c], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x38], esi
call fcn.004c8c7f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x20]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x1c], eax
push dword [ebp - 0xac]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x4c]
call fcn.004c8c7f
push dword [ebp - 0x58]
call fcn.004c8c7f
push dword [ebp - 0x54]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x50]
call fcn.004c8c7f
push dword [ebp - 0x44]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004c8c7f
mov esi, dword [ebp - 0x34]
add esp, 0x30
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xa0]
push eax
push 0x20119
push 0
push edi
push ebx
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40de04
push 2
mov dword [ebp - 0x44], eax
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x58], edi
mov word [edi], ax
push 2
call fcn.004c8c9a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x40], ebx
mov word [ebx], ax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0xa0]
call fcn.004150d0
add esp, 0x30
test eax, eax
jne 0x40ddc9
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x40c71a
cmp eax, 2
je 0x40c71a
cmp eax, 7
je 0x40c71a
cmp eax, 3
je 0x40c71a
push ebx
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
jmp 0x40dd33
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c722
sub ecx, edx
sar ecx, 1
jne 0x40c751
cmp byte [ebp + 0x24], al
je 0x40c79a
push 0x4fca0c
call fcn.004c8c20
push ebx
mov dword [ebp - 0x18], eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x18]
add esp, 8
test ebx, ebx
mov eax, 0x4fbd20
cmovne eax, ebx
push eax
call fcn.004c8c20
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
add esp, 8
cmp byte [ebp + 0x18], 0
je 0x40cdde
push dword [0x540000]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov esi, dword [ebp - 0x10]
cmp eax, 0x200
jne 0x40c7a2
push 0x4fca20
jmp 0x40c7a7
push dword [ebp - 0x24]
jmp 0x40c6ea
push 0x4fbd20
call fcn.004c8c20
add esp, 4
mov dword [ebp - 0x10], eax
push esi
call fcn.004c8c7f
push 0x4fbe8c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
push 0x4fca3c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x14]
mov eax, 0x4fbd20
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 4
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
push 0x4fca5c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x18
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
mov ebx, dword [ebp - 0x14]
mov eax, 0x4fbd20
mov esi, dword [ebp - 0x34]
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
mov dword [ebp - 0x34], eax
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0x10
push dword [0x540000]
call ebx
lea ecx, [ebp - 0x30]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x10]
push SysReAllocStringLen
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40c929
mov esi, dword [ebp - 0x10]
push 0x4fbd20
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4fbd20
push dword [ebp - 0x30]
call fcn.004151a0
add esp, 0x1c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40caba
push 0x4fbe8c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
push 0x4fcb00
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov ecx, dword [ebp - 0x14]
mov eax, 0x4fbd20
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x1c]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov ebx, dword [ebp - 0x1c]
mov eax, 0x4fbd20
mov esi, dword [ebp - 0x10]
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push 0x4fca5c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x24
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
mov ebx, dword [ebp - 0x1c]
mov eax, 0x4fbd20
mov esi, dword [ebp - 0x34]
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
mov dword [ebp - 0x34], eax
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0x10
push dword [0x540000]
call ebx
lea ecx, [ebp - 0x30]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x10]
push SysReAllocStringLen
call fcn.00408690
mov esi, dword [ebp - 0x10]
add esp, 0x14
push 0x4fbd20
test eax, eax
jne 0x40caa9
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4fbd20
push dword [ebp - 0x30]
call fcn.004151a0
add esp, 0x1c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40caba
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
add esp, 8
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cac0
sub ecx, edx
sar ecx, 1
jne 0x40cb56
push dword [0x540000]
call ebx
mov ebx, eax
push 0x4fbe8c
or ebx, 0x20019
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x54], eax
call fcn.004c8c7f
add esp, 0x10
lea ecx, [ebp - 0x54]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0
push esi
push SysReAllocStringLen
mov byte [ebp - 4], 0x17
call fcn.00408690
add esp, 0x18
test eax, eax
jne 0x40cb59
mov bl, 1
jmp 0x40cb5b
mov esi, dword [ebp - 0x54]
xor bl, bl
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x16
test al, 1
je 0x40cb78
and eax, 0xfffffffe
push esi
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
add esp, 4
test bl, bl
je 0x40cb9d
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x4fbd20
push dword [ebp - 0x30]
call fcn.004151a0
add esp, 0x14
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
mov word [eax], cx
mov dword [ebp - 0x80], ecx
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x18
push eax
push dword [ebp - 0x10]
call fcn.00408a20
add esp, 0xc
test al, al
jne 0x40cca0
mov ebx, dword [ebp - 0x88]
mov byte [ebp - 4], 0x16
test ebx, ebx
je 0x40cc5b
mov esi, ebx
cmp esi, dword [ebp - 0x84]
je 0x40cc09
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, dword [ebp - 0x84]
jne 0x40cbf4
mov eax, dword [ebp - 0x80]
sub eax, ebx
sar eax, 2
lea ecx, [eax*4]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40cc36
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push ecx
push ebx
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
push dword [ebp - 0x8c]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
mov edi, dword [ebp - 0x28]
push edi
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
mov esi, dword [ebp - 0x34]
add esp, 0x1c
jmp 0x40dd36
mov eax, dword [ebp - 0x20]
mov ecx, 0x4fbd20
mov esi, dword [ebp - 0x28]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push dword [ebp - 0x10]
lea eax, [ebp - 0xd8]
push eax
call fcn.00406250
mov esi, dword [ebp - 0x10]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push dword [ebp - 0xd8]
call fcn.004c8c7f
add esp, 0x18
lea ecx, [ebp - 0x8c]
mov eax, esp
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00408f10
add esp, 0x14
lea eax, [ebp - 0xc4]
push eax
call fcn.0040a6e0
mov eax, dword [ebp - 0xc4]
mov ecx, 0x4fbd20
or dword [ebp - 0x2c], 4
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
call fcn.004c8c7f
push dword [ebp - 0xc4]
call fcn.004c8c7f
mov edi, dword [ebp - 0x88]
add esp, 0x14
mov byte [ebp - 4], 0x16
test edi, edi
je 0x40cdd3
mov ebx, dword [ebp - 0x84]
mov esi, edi
cmp esi, ebx
je 0x40cd81
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40cd70
mov eax, dword [ebp - 0x80]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x40cdae
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push ecx
push edi
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
push dword [ebp - 0x8c]
jmp 0x40d43f
cmp byte [ebp + 0x14], 0
jne 0x40d264
push dword [0x540000]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov esi, dword [ebp - 0x10]
cmp eax, 0x200
jne 0x40ce06
push 0x4fca20
jmp 0x40ce0b
push 0x4fbd20
call fcn.004c8c20
add esp, 4
mov dword [ebp - 0x10], eax
push esi
call fcn.004c8c7f
push 0x4fbe8c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00405090
push esi
call fcn.004c8c7f
push 0x4fca3c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x1c]
mov eax, 0x4fbd20
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x1c]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
push 0x4fca5c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x18
lea ecx, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.00405090
push esi
call fcn.004c8c7f
mov ecx, dword [ebp - 0x14]
mov eax, 0x4fbd20
mov ebx, dword [ebp - 0x34]
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8c20
mov esi, eax
mov dword [ebp - 0x34], esi
push ebx
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
add esp, 0x10
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x30]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x10]
push SysReAllocStringLen
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40d230
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4fbd20
push dword [ebp - 0x30]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x40d230
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov word [eax], cx
mov dword [ebp - 0x70], ecx
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x19
push eax
push dword [ebp - 0x10]
call fcn.00408a20
add esp, 0xc
test al, al
je 0x40d178
push ecx
mov eax, esp
lea ecx, [ebp - 0x7c]
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00408f10
add esp, 0x14
lea eax, [ebp - 0xc8]
push eax
call fcn.0040a6e0
mov eax, dword [ebp - 0xc8]
mov ecx, 0x4fbd20
or dword [ebp - 0x2c], 0x20
mov esi, edi
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
mov edi, eax
push esi
mov dword [ebp - 0x58], edi
call fcn.004c8c7f
push dword [ebp - 0xc8]
call fcn.004c8c7f
push 0x4fcb28
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov eax, dword [ebp - 0x18]
mov ecx, 0x4fbd20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x24
lea ecx, [ebp - 0x1c]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov ebx, dword [ebp - 0x1c]
mov eax, 0x4fbd20
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0xc
lea ecx, [ebp - 0x1c]
push edi
call fcn.00405090
mov edi, dword [ebp - 0x1c]
mov eax, 0x4fbd20
mov esi, dword [ebp - 0x20]
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8c20
push esi
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
add esp, 0xc
lea ecx, [ebp - 0x7c]
mov eax, esp
push 0
push 0
push ecx
push dword [ebp + 8]
push eax
call fcn.00408f10
add esp, 0x14
lea eax, [ebp - 0xd0]
push eax
call fcn.0040a6e0
mov eax, dword [ebp - 0xd0]
mov ecx, 0x4fbd20
or dword [ebp - 0x2c], 0x10
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
call fcn.004c8c7f
push dword [ebp - 0xd0]
call fcn.004c8c7f
mov ebx, dword [ebp - 0x78]
add esp, 0x14
mov byte [ebp - 4], 0x16
test ebx, ebx
je 0x40d15f
mov edi, dword [ebp - 0x74]
mov esi, ebx
cmp esi, edi
je 0x40d113
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x40d102
mov eax, dword [ebp - 0x70]
sub eax, ebx
sar eax, 2
lea ecx, [eax*4]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40d140
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push ecx
push ebx
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push dword [ebp - 0x7c]
call fcn.004c8c7f
add esp, 4
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d447
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x40d1f1
mov ebx, ecx
cmp ebx, dword [ebp - 0x74]
je 0x40d1a5
nop dword [eax]
push dword [ebx]
call fcn.004c8c7f
add ebx, 4
add esp, 4
cmp ebx, dword [ebp - 0x74]
jne 0x40d190
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x70]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d1d2
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push edx
push ecx
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push dword [ebp - 0x7c]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
mov edi, dword [ebp - 0x28]
push edi
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
add esp, 0x1c
jmp 0x40dd36
push dword [ebp - 0x24]
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
mov edi, dword [ebp - 0x28]
push edi
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
jmp 0x40dd33
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
mov word [eax], cx
mov dword [ebp - 0x90], ecx
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x1a
push eax
push dword [ebp - 0x20]
call fcn.00408a20
add esp, 0xc
test al, al
jne 0x40d33c
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x40d331
mov ebx, ecx
cmp ebx, dword [ebp - 0x94]
je 0x40d2d9
push dword [ebx]
call fcn.004c8c7f
add ebx, 4
add esp, 4
cmp ebx, dword [ebp - 0x94]
jne 0x40d2c1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x90]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d309
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push edx
push ecx
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
push dword [ebp - 0x9c]
jmp 0x40d1f4
mov eax, dword [ebp - 0x20]
mov ecx, 0x4fbd20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
add esp, 4
lea ecx, [ebp - 0x9c]
mov eax, esp
push 0
push 0
push ecx
push dword [ebp + 8]
push eax
call fcn.00408f10
add esp, 0x14
lea eax, [ebp - 0xd4]
push eax
call fcn.0040a6e0
mov eax, dword [ebp - 0xd4]
mov ecx, 0x4fbd20
or dword [ebp - 0x2c], 8
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
call fcn.004c8c7f
push dword [ebp - 0xd4]
call fcn.004c8c7f
mov edi, dword [ebp - 0x98]
add esp, 0x14
mov byte [ebp - 4], 0x16
test edi, edi
je 0x40d439
mov ebx, dword [ebp - 0x94]
mov esi, edi
cmp esi, ebx
je 0x40d3e1
nop dword [eax]
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40d3d0
mov eax, dword [ebp - 0x90]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d411
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push ecx
push edi
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
push dword [ebp - 0x9c]
call fcn.004c8c7f
add esp, 4
mov edi, dword [ebp - 0x28]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d450
sub ecx, edx
sar ecx, 1
jne 0x40d4d3
mov ebx, dword [ebp - 0x40]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d470
sub ecx, edx
sar ecx, 1
je 0x40d4d3
push 0x5c
push ebx
call fcn.004c5688
add esp, 8
test eax, eax
je 0x40d4b7
push 0x5c
push ebx
call fcn.004c5688
add eax, 2
mov ecx, 0x4fbd20
cmovne ecx, eax
push ecx
call fcn.004c8c20
push edi
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
add esp, 0x10
jmp 0x40d4d3
test ebx, ebx
mov eax, 0x4fbd20
cmovne eax, ebx
push eax
call fcn.004c8c20
push edi
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
add esp, 8
mov eax, dword [ebp + 0x10]
mov esi, 0x4fbd20
test eax, eax
cmovne esi, eax
push esi
mov dword [ebp - 0x14], esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x38], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x4c], esi
call fcn.004c8c7f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.00409d10
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x1f
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.00405200
add esp, 0x58
mov bl, al
push dword [ebp - 0xdc]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0xe0]
call fcn.004c8c7f
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.004c8c7f
add esp, 0x14
test bl, bl
je 0x40d7f9
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40d765
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x4c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x68], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x64], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x60], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x5c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
mov esi, dword [ebp - 0x14]
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xe4]
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp + 0x1c], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x38], esi
call fcn.004c8c7f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xfc]
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x20]
lea edx, [ebp - 0x4c]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x2b
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x1c], eax
push dword [ebp - 0xfc]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0xe4]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x5c]
call fcn.004c8c7f
push dword [ebp - 0x60]
call fcn.004c8c7f
push dword [ebp - 0x64]
call fcn.004c8c7f
push dword [ebp - 0x68]
call fcn.004c8c7f
push dword [ebp - 0x4c]
call fcn.004c8c7f
mov ebx, dword [ebp - 0x6c]
add esp, 0x30
jmp 0x40d769
movzx ebx, byte [ebp + 0x20]
push dword [ebp - 0x14]
mov edi, dword [ebp - 0xcc]
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x6c], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xe8]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2d
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push dword [ebp + 0x1c]
push 0xffffffffffffffff
push edi
call fcn.00405510
add esp, 0x5c
push dword [ebp - 0xe8]
call fcn.004c8c7f
push esi
mov byte [ebp - 4], 0x16
call fcn.004c8c7f
add esp, 8
jmp 0x40d7fc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push 0x20119
push 0
push 0x4fcb34
push dword [ebp - 0xa0]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40dd00
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], ebx
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x30]
call fcn.004150d0
add esp, 0x18
test eax, eax
jne 0x40dd00
jmp 0x40d853
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x40d86e
cmp eax, 2
je 0x40d86e
cmp eax, 7
je 0x40d86e
cmp eax, 3
jne 0x40dcda
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], ecx
mov word [eax], cx
mov dword [ebp - 0xb0], ecx
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x2e
push eax
push dword [ebp - 0x20]
call fcn.00408a20
add esp, 0xc
test al, al
jne 0x40d94c
mov edi, dword [ebp - 0xb8]
mov byte [ebp - 4], 0x16
test edi, edi
je 0x40d93c
mov ebx, dword [ebp - 0xb4]
mov esi, edi
cmp esi, ebx
je 0x40d8e1
nop word [eax + eax]
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40d8d0
mov eax, dword [ebp - 0xb0]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d911
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push ecx
push edi
call fcn.004c3279
mov ebx, dword [ebp - 0x44]
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
push dword [ebp - 0xbc]
call fcn.004c8c7f
jmp 0x40dcd7
mov eax, dword [ebp - 0x20]
mov ecx, 0x4fbd20
mov esi, dword [ebp - 0x34]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
add esp, 4
lea ecx, [ebp - 0xbc]
mov eax, esp
push 0
push 0
push ecx
push edi
push eax
call fcn.00408f10
add esp, 0x14
lea eax, [ebp - 0xac]
push eax
call fcn.0040a6e0
mov eax, dword [ebp - 0xac]
mov ecx, 0x4fbd20
or dword [ebp - 0x2c], 2
test eax, eax
mov esi, dword [ebp - 0x40]
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x40], eax
call fcn.004c8c7f
push dword [ebp - 0xac]
call fcn.004c8c7f
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004c8c20
push 0
mov edi, eax
call fcn.004c8c7f
push 0x4fcb44
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test edi, edi
mov eax, 0x4fbd20
cmovne eax, edi
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
add esp, 0x2c
lea ecx, [ebp - 0x28]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
add esp, 8
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40dbcb
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x38], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x5c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x60], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x64], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x68], eax
call fcn.004c8c7f
push ebx
call fcn.004c8c20
push 0
mov dword [ebp - 0x4c], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xf0]
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp + 0x1c], edi
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x6c], esi
call fcn.004c8c7f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xec]
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x20]
lea edx, [ebp - 0x38]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x3b
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x1c], eax
push dword [ebp - 0xec]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0xf0]
call fcn.004c8c7f
push dword [ebp - 0x4c]
call fcn.004c8c7f
push dword [ebp - 0x68]
call fcn.004c8c7f
push dword [ebp - 0x64]
call fcn.004c8c7f
push dword [ebp - 0x60]
call fcn.004c8c7f
push dword [ebp - 0x5c]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x38]
call fcn.004c8c7f
mov edi, dword [ebp - 0x48]
add esp, 0x30
jmp 0x40dbcf
movzx edi, byte [ebp + 0x20]
mov esi, dword [ebp - 0xcc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xf4]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x3c
push ecx
push edi
push esi
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp + 0x1c]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405510
add esp, 0x54
push dword [ebp - 0xf4]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
mov edi, dword [ebp - 0xb8]
add esp, 8
mov byte [ebp - 4], 0x16
test edi, edi
je 0x40dcc9
mov ebx, dword [ebp - 0xb4]
mov esi, edi
cmp esi, ebx
je 0x40dc71
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40dc60
mov eax, dword [ebp - 0xb0]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x40dca1
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4e
push ecx
push edi
call fcn.004c3279
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
push dword [ebp - 0xbc]
call fcn.004c8c7f
mov ebx, dword [ebp - 0x44]
add esp, 4
lea eax, [ebp - 0x20]
inc ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], ebx
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x30]
call fcn.004150d0
add esp, 0x18
test eax, eax
je 0x40d850
push dword [ebp - 0x40]
call fcn.004c8c7f
push dword [ebp - 0x58]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
mov esi, dword [ebp - 0x34]
add esp, 0x18
inc dword [ebp - 0x44]
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x58], edi
mov word [edi], ax
push 2
call fcn.004c8c9a
mov ebx, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x40], ebx
mov word [ebx], ax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0xa0]
call fcn.004150d0
add esp, 0x30
test eax, eax
je 0x40c6d2
push ebx
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
add esp, 0x18
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004c8c7f
push dword [ebp - 0xa4]
call fcn.004c8c7f
push dword [ebp - 0xc0]
call fcn.004c8c7f
push dword [ebp - 0xa8]
call fcn.004c8c7f
push dword [ebp - 0xf8]
call fcn.004c8c7f
mov eax, dword [ebp + 0x1c]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004c8bcf
int3