Function at 0x411ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x576afd
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x268]
mov edx, dword [0x5dcd6c]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
xor ebx, ebx
push str.TFEQTGUBU_ijceff
lea edi, [esp + 0x30]
mov dword [esp + 0x264], ebx
call fcn.00401150
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x411b52
mov eax, dword [eax + 4]
jmp 0x411b55
add eax, 4
cmp eax, ebx
je 0x411bb6
xor ecx, ecx
cmp ecx, str.ProgramPath
je 0x411bb6
cmp word [eax], bx
je 0x411bb6
xor esi, esi
mov dword [esp + 0x18], esi
lea edx, [esp + 0x28]
push edx
push 0x20219
push ebx
push eax
mov byte [esp + 0x270], 2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x411bab
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x1c]
call fcn.004389d0
cmp eax, ebx
mov esi, dword [esp + 0x18]
je 0x411c08
cmp esi, ebx
je 0x411bb6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, ebx
lea ecx, [esp + 0x2c]
sete byte [esp + 0x17]
mov byte [esp + 0x260], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [esp + 0x17], bl
je 0x411ca4
lea eax, [ebp - 0x10]
mov dword [esp + 0x260], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x411d07
push 0x208
lea ecx, [esp + 0x4e]
push ebx
push ecx
mov word [esp + 0x54], bx
call fcn.0044ea7c
add esp, 0xc
push str.ProgramPath
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x50]
mov dword [esp + 0x24], 0x104
call fcn.00438950
lea esi, [esp + 0x18]
call fcn.00438930
lea eax, [esp + 0x48]
mov word [esp + 0x250], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411c57
sub eax, edx
sar eax, 1
jne 0x411c7a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411bb6
push eax
jmp 0x411bb0
lea edx, [esp + 0x48]
lea edi, [esp + 0x20]
call fcn.00401ff0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411c96
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x20]
mov eax, 1
jmp 0x411bb8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00401bd0
push ecx
lea esi, [ebp - 0x10]
mov eax, esi
mov byte [esp + 0x268], 3
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.004045e0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x268], bl
call fcn.00411650
mov edi, eax
mov dword [esp + 0x260], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x411d05
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0044e502
add esp, 0x250
ret 4