Function at 0x41eb76
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x45e040]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x10], esi
xor esi, esi
and dword [esp + 0x24], esi
push edi
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], esi
test edi, edi
je 0x41ebd3
and dword [edi], esi
or dword [ecx], 0xffffffff
mov dword [esp + 0x1c], 0x7ffe0320
mov dword [esp + 0x20], 0x7ffe0328
mov edi, 0x7ffe0324
push dword [esp + 0x14]
test edx, edx
je 0x41ec0e
push edx
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ntdll.dll_NtCreateKeyTransacted]
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x41ec26
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov ebx, eax
mov dword [esp + 0x24], eax
cmp ebx, 0xc000003a
je 0x41ec3a
cmp ebx, 0xc0000034
jne 0x41ed84
mov eax, dword [ebp + 8]
test al, 4
je 0x41ed60
and eax, 0xfffffffb
lea edi, [esp + 0x50]
mov dword [ebp + 8], eax
lea edx, [esp + 0x50]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 8]
call fcn.0045532c
test eax, eax
js 0x41ee54
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x6c]
push eax
push 0x5c
push ecx
push ecx
push 2
lea edx, [esp + 0x68]
pop ecx
call fcn.004554c5
test eax, eax
js 0x41ee54
cmp dword [esp + 0x5c], 0
jbe 0x41ed43
lea edx, [esp + 0x94]
lea ecx, [esp + 0x68]
call fcn.00455395
test eax, eax
js 0x41ee54
push 6
pop ecx
mov esi, edi
or dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x94]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
xor esi, esi
lea eax, [esp + 0x90]
inc esi
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x80]
mov dword [esp + 0x98], esi
push dword [esp + 0x38]
push dword [ebp + 0x20]
push dword [esp + 0x44]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebp + 8]
or eax, 4
push eax
call fcn.0041eb76
test eax, eax
jne 0x41ed3f
cmp dword [esp + 0x90], esi
jne 0x41ed3f
push dword [esp + 0x74]
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [esp + 0x10]
test ebx, ebx
jns 0x41ee45
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
jmp 0x41ebe6
cmp ebx, 0xc0000034
jne 0x41ed74
test al, 1
je 0x41ed8c
push 2
pop eax
jmp 0x41ee48
cmp ebx, 0xc000003a
jne 0x41ed84
test al, 2
je 0x41ed8c
push 3
jmp 0x41ed6e
test ebx, ebx
jns 0x41ee45
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41ee1a
mov ecx, dword [esp + 0x28]
mov eax, esi
or eax, ecx
jne 0x41ee08
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi]
mov edx, dword [0x7ffe0004]
mov dword [esp + 0x10], edx
mov edi, dword [eax]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp ecx, eax
je 0x41ede0
mov edx, dword [esp + 0x1c]
mov esi, 0x7ffe0324
mov ebx, dword [esp + 0x20]
pause
mov ecx, dword [esi]
mov edi, dword [edx]
mov eax, dword [ebx]
cmp ecx, eax
jne 0x41edcc
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, edx
mul ecx
mov esi, eax
mov ecx, edx
mov eax, edi
mul dword [esp + 0x10]
shld ecx, esi, 8
shrd eax, edx, 0x18
shl esi, 8
shr edx, 0x18
add esi, eax
mov dword [esp + 0x10], esi
adc ecx, edx
mov dword [esp + 0x28], ecx
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push esi
push ebx
call fcn.0041d835
jmp 0x41ed43
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push ebx
mov dword [esp + 0x44], 0x404574
mov dword [esp + 0x48], 0x404768
mov dword [esp + 0x4c], 0x413
call fcn.00456190
mov eax, ebx
jmp 0x41ee54
xor eax, eax
inc eax
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x41ee52
mov dword [edi], eax
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d72e
mov esp, ebp
pop ebp
ret 0x28