Function at 0x41d690
Capabilities:
Get thread local storage value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0fbf
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x80], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x7c], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x58], eax
add esp, 0x18
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
mov dword [ebp - 0x88], ecx
jne 0x41d915
push 0x4f9d20
mov dword [ebp - 0x48], ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x48], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x44], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x44], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x10], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x40], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x40], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x3c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x38], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x38], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x14], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
test edi, edi
mov dword [ebp - 0x18], 0
mov esi, 0x4f9d20
cmovne esi, edi
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8d5f
add esp, 0x40
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00409cf0
mov edi, eax
push 0x4f9d20
mov dword [ebp - 0x1c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x20], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8d5f
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
push ecx
push 1
push 0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push edi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x64]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x50]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push dword [ebp - 0x38]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
push dword [ebp - 0x40]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
push dword [ebp - 0x44]
call fcn.004c8d5f
push dword [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004c8d5f
add esp, 0x30
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x54]
push eax
push dword [0x539fd0]
call edi
or eax, 0x20019
push eax
push 0
push dword [ebp + 0x10]
push ebx
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x41e428
push 2
mov dword [ebp - 0x64], eax
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov word [eax], cx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x15
push eax
push ecx
push dword [ebp - 0x54]
call fcn.00415050
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x1c
test eax, eax
jne 0x41e399
nop dword [eax]
mov eax, dword [ebp - 0x18]
mov ecx, 0x4f9d20
mov esi, dword [ebp - 0x58]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push esi
mov dword [ebp - 0x58], eax
call fcn.004c8d5f
add esp, 8
push dword [0x539fd0]
call edi
lea ecx, [ebp - 0x1c]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x54]
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x41da1d
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push str.LoadBehavior
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c]
call ebx
mov eax, dword [ebp - 0x88]
sub eax, 0
je 0x41da34
mov dword [ebp - 0x4c], 1
sub eax, 1
jne 0x41da3b
mov dword [ebp - 0x4c], 0
push dword [0x539fd0]
call edi
mov edi, eax
push str.CLSID
or edi, 0x20019
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov eax, dword [ebp - 0x18]
mov ecx, 0x4f9d20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x10
lea ecx, [ebp - 0x10]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
push esi
push SysReAllocStringLen
mov byte [ebp - 4], 0x16
call fcn.004086c0
push esi
mov edi, eax
mov byte [ebp - 4], 0x15
call fcn.004c8d5f
add esp, 0x1c
test edi, edi
jne 0x41e296
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x4f9d20
push dword [ebp - 0x1c]
call fcn.004151a0
add esp, 0x14
push dword [ebp - 0x1c]
test eax, eax
jne 0x41e26b
call ebx
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp - 0x14]
cmp eax, 0x200
jne 0x41dafd
push str.Wow6432Node_
jmp 0x41db02
push 0x4f9d20
call fcn.004c8d00
add esp, 4
mov dword [ebp - 0x14], eax
push esi
call fcn.004c8d5f
push str.CLSID_
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
test esi, esi
mov ecx, 0x4f9d20
cmovne ecx, esi
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x14
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.004050e0
push esi
call fcn.004c8d5f
push 0x4faa3c
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov edi, dword [ebp - 0x10]
mov eax, 0x4f9d20
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x14
lea ecx, [ebp - 0x10]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
add esp, 4
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push str.HKCRCLSID_
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
test esi, esi
mov ecx, 0x4f9d20
cmovne ecx, esi
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x18
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.004050e0
push esi
call fcn.004c8d5f
mov edi, dword [ebp - 0x10]
mov eax, 0x4f9d20
mov esi, dword [ebp - 0x5c]
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8d00
mov dword [ebp - 0x5c], eax
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
add esp, 0x10
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x1c]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x14]
push SysReAllocStringLen
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x41dcf6
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4f9d20
push dword [ebp - 0x1c]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x41dcbb
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
call fcn.00408e30
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0
push eax
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004069d0
mov esi, dword [ebp - 0x20]
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push esi
mov dword [ebp - 0x20], eax
call fcn.004c8d5f
push dword [ebp - 0x8c]
call fcn.004c8d5f
add esp, 0x24
push dword [ebp - 0x1c]
call ebx
jmp 0x41dcf9
push dword [ebp - 0x1c]
call ebx
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x14
test esi, esi
je 0x41e308
mov edi, dword [ebp - 0x28]
cmp esi, edi
je 0x41e2bc
nop word [eax + eax]
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x41dce0
jmp 0x41e2b9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x20]
push edi
call fcn.004069c0
push str.CLSID_
mov dword [ebp - 0xa4], eax
call fcn.004c8d00
push 0
mov ebx, eax
call fcn.004c8d5f
test ebx, ebx
mov ecx, 0x4f9d20
cmovne ecx, ebx
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x20
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.004050e0
mov edi, dword [ebp - 0x10]
mov eax, 0x4f9d20
mov esi, dword [ebp - 0x14]
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8d00
push esi
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
mov eax, dword [ebp - 0x18]
mov ecx, 0x4f9d20
mov esi, dword [ebp - 0x34]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push esi
mov dword [ebp - 0x34], eax
call fcn.004c8d5f
add esp, 0x18
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x1c]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x14]
push SysReAllocStringLen
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x41de29
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4f9d20
push dword [ebp - 0x1c]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x41de20
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ddf0
sub ecx, esi
sar ecx, 1
je 0x41de20
mov esi, dword [ebp - 0x34]
test edx, edx
mov eax, 0x4f9d20
cmovne eax, edx
push eax
call fcn.004c8d00
push esi
mov dword [ebp - 0x34], eax
call fcn.004c8d5f
add esp, 8
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
mov edi, 0x4f9d20
test eax, eax
mov dword [ebp - 0x10], 0
cmovne edi, eax
push edi
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00409cf0
mov esi, eax
push 0x4f9d20
mov dword [ebp - 0x44], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x44], eax
call fcn.004c8d5f
push edi
mov dword [ebp - 0x48], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x48], eax
call fcn.004c8d5f
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00409cf0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1b
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.00405240
add esp, 0x58
mov bl, al
push dword [ebp - 0x90]
call fcn.004c8d5f
push dword [ebp - 0x48]
call fcn.004c8d5f
push dword [ebp - 0x44]
call fcn.004c8d5f
push dword [ebp - 0x94]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x14
test bl, bl
je 0x41e1cb
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41e118
push 0x4f9d20
mov dword [ebp - 0x10], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x78], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x78], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x74], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x74], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x84], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x84], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x70], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x70], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x6c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x6c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x68], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x68], eax
call fcn.004c8d5f
push edi
mov dword [ebp - 0x38], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x38], eax
call fcn.004c8d5f
add esp, 0x40
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.00409cf0
mov esi, eax
push 0x4f9d20
mov dword [ebp - 0x3c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8d5f
push edi
mov dword [ebp - 0x40], 0
call fcn.004c8d00
mov dword [ebp - 0x40], eax
push 0
call fcn.004c8d5f
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00409cf0
mov ebx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
push 0
push 0
push ecx
push ebx
push 0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x27
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x98]
call fcn.004c8d5f
push dword [ebp - 0x40]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
push dword [ebp - 0x9c]
call fcn.004c8d5f
push dword [ebp - 0x38]
call fcn.004c8d5f
push dword [ebp - 0x68]
call fcn.004c8d5f
push dword [ebp - 0x6c]
call fcn.004c8d5f
push dword [ebp - 0x70]
call fcn.004c8d5f
push dword [ebp - 0x84]
call fcn.004c8d5f
push dword [ebp - 0x74]
call fcn.004c8d5f
push dword [ebp - 0x78]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x30
jmp 0x41e11b
mov ebx, dword [ebp - 0x4c]
push 0x4f9d20
mov dword [ebp - 0x4c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x4c], eax
call fcn.004c8d5f
mov esi, dword [ebp - 0xa0]
push edi
mov dword [ebp - 0x50], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x50], eax
call fcn.004c8d5f
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x29
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x2a
push ecx
push ebx
push esi
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
push 0x12
push dword [ebp + 0x14]
push dword [ebp - 0xa4]
push dword [ebp + 8]
call fcn.00405550
add esp, 0x64
push dword [ebp - 0xa8]
call fcn.004c8d5f
push dword [ebp - 0x50]
call fcn.004c8d5f
push dword [ebp - 0x4c]
call fcn.004c8d5f
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x14
test esi, esi
je 0x41e240
mov edi, dword [ebp - 0x28]
cmp esi, edi
je 0x41e1f4
nop dword [eax]
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x41e1e0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x41e221
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e470
push ecx
push esi
call fcn.004c34a9
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e328
call ebx
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x14
test esi, esi
je 0x41e308
mov edi, dword [ebp - 0x28]
cmp esi, edi
je 0x41e2bc
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x41e283
jmp 0x41e2b9
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x14
test esi, esi
je 0x41e308
mov edi, dword [ebp - 0x28]
cmp esi, edi
je 0x41e2bc
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x41e2a8
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x41e2e9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e470
push ecx
push esi
call fcn.004c34a9
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
mov esi, dword [ebp - 0x64]
add esp, 0x10
inc esi
mov dword [ebp - 0x64], esi
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov word [eax], cx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x15
push eax
push esi
push dword [ebp - 0x54]
call fcn.00415050
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0x1c
test eax, eax
je 0x41d9b0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41e400
mov edi, dword [ebp - 0x28]
cmp esi, edi
je 0x41e3bb
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x41e3a7
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41e3e1
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e470
push ecx
push esi
call fcn.004c34a9
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
add esp, 0x10
push dword [ebp - 0x54]
call ebx
push dword [ebp - 0x58]
call fcn.004c8d5f
push dword [ebp - 0x5c]
call fcn.004c8d5f
push dword [ebp - 0x7c]
call fcn.004c8d5f
push dword [ebp - 0x80]
call fcn.004c8d5f
push dword [ebp - 0x60]
call fcn.004c8d5f
push dword [ebp - 0x34]
call fcn.004c8d5f
mov eax, dword [ebp + 0x14]
add esp, 0x18
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.004c8caf
int3