Function at 0x41fd56
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 [0x462040]
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 0x41fdb3
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 0x41fdee
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 0x41fe06
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 0x41fe1a
cmp ebx, 0xc0000034
jne 0x41ff64
mov eax, dword [ebp + 8]
test al, 4
je 0x41ff40
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.00459199
test eax, eax
js 0x420034
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.00459332
test eax, eax
js 0x420034
cmp dword [esp + 0x5c], 0
jbe 0x41ff23
lea edx, [esp + 0x94]
lea ecx, [esp + 0x68]
call fcn.00459202
test eax, eax
js 0x420034
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.0041fd56
test eax, eax
jne 0x41ff1f
cmp dword [esp + 0x90], esi
jne 0x41ff1f
push dword [esp + 0x74]
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [esp + 0x10]
test ebx, ebx
jns 0x420025
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
jmp 0x41fdc6
cmp ebx, 0xc0000034
jne 0x41ff54
test al, 1
je 0x41ff6c
push 2
pop eax
jmp 0x420028
cmp ebx, 0xc000003a
jne 0x41ff64
test al, 2
je 0x41ff6c
push 3
jmp 0x41ff4e
test ebx, ebx
jns 0x420025
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41fffa
mov ecx, dword [esp + 0x28]
mov eax, esi
or eax, ecx
jne 0x41ffe8
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 0x41ffc0
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 0x41ffac
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.0041ea5b
jmp 0x41ff23
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push ebx
mov dword [esp + 0x44], 0x404644
mov dword [esp + 0x48], 0x404838
mov dword [esp + 0x4c], 0x413
call fcn.0045a015
mov eax, ebx
jmp 0x420034
xor eax, eax
inc eax
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x420032
mov dword [edi], eax
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00461687
mov esp, ebp
pop ebp
ret 0x28