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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6cb6
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
je 0x41a35d
cmp eax, 2
jne 0x41a81a
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x4c]
mov eax, edi
mov dword [esp + 0x160], ebx
call fcn.0041c980
cmp dword [eax + 0x18], 8
jb 0x41a382
mov eax, dword [eax + 4]
jmp 0x41a385
add eax, 4
mov esi, dword [edi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x41a39f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x41a3cc
cmp byte [ebp + 0xc], bl
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x13], 1
je 0x41a3d0
mov byte [esp + 0x13], bl
cmp dword [esp + 0x64], 8
jb 0x41a3e4
mov eax, dword [esp + 0x50]
push eax
call fcn.004abbe4
add esp, 4
cmp byte [esp + 0x13], bl
je 0x41a465
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push edi
mov byte [esp + 0x1a4], 1
call fcn.0041c800
mov ecx, dword [esp + 0x60]
push ebx
push ecx
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], bl
call fcn.004186b0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 2
call fcn.00419180
push 0x4e0d4c
lea edx, [esp + 0x88]
push edx
call fcn.004ae5f3
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov byte [esp + 0x164], 4
call fcn.0040a470
test al, al
jne 0x41a50d
cmp byte [ebp + 0xc], bl
jne 0x41a50d
push ebx
sub esp, 0x1c
mov edx, 0x4cb7f8
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.004016b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push edi
mov byte [esp + 0x1a4], 5
call fcn.0041c800
mov ecx, dword [esp + 0x60]
push ebx
push ecx
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], 4
call fcn.004186b0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 6
call fcn.00419180
push 0x4e0d4c
lea edx, [esp + 0x88]
push edx
call fcn.004ae5f3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jmp 0x41a520
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x41a66b
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jae 0x41a66b
lea esi, [esp + 0x4c]
mov eax, edi
call fcn.0041c980
mov dword [esp + 0x1c], eax
mov byte [esp + 0x160], 7
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x41a58d
mov ecx, dword [esp + 0x44]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x41a596
call fcn.004ac22f
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
add eax, esi
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0041c9b0
add esp, 8
push eax
lea eax, [esp + 0x88]
mov byte [esp + 0x164], 8
mov edx, dword [edi + 0x20]
push eax
call fcn.0041c630
cmp dword [esp + 0x80], 8
jb 0x41a5de
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
mov byte [esp + 0x160], 0xb
cmp dword [esp + 0x64], 8
jb 0x41a60e
mov edx, dword [esp + 0x50]
push edx
call fcn.004abbe4
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
call fcn.0041a300
add esp, 0xc
lea eax, [esp + 0x84]
push eax
lea esi, [edi + 0x10]
call fcn.0041b900
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x164], 4
call fcn.0041c6b0
add dword [esp + 0x14], 1
add dword [esp + 0x18], 0x1c
jmp 0x41a520
xor edi, edi
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41a7c2
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x41a7a2
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
push 1
lea esi, [esp + 0xfc]
call fcn.00423e30
mov byte [esp + 0x160], 0xc
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41a6fb
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41a704
call fcn.004ac22f
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, edx
push ebx
push esi
lea eax, [esp + 0xec]
call fcn.004017d0
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41a73f
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41a748
call fcn.004ac22f
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp dword [esi + eax + 0x18], 8
jb 0x41a759
mov esi, dword [esi + eax + 4]
jmp 0x41a75d
lea esi, [esi + eax + 4]
lea eax, [esp + 0xdc]
push eax
push esi
lea ecx, [esp + 0x28]
push ecx
call fcn.0040a360
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xdc]
push edx
call fcn.00404080
lea esi, [esp + 0xdc]
mov byte [esp + 0x160], 4
call fcn.00423ee0
add edi, 1
add dword [esp + 0x14], 0x1c
jmp 0x41a671
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push eax
mov eax, esi
call fcn.00402790
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call fcn.004abbe4
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x41a7f4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x44]
push edx
call fcn.00402790
mov eax, dword [esp + 0x44]
add esp, 4
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x41a81a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x41a82b
cmp eax, 2
jne 0x41ad54
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x4c]
mov dword [esp + 0x160], 0xd
call fcn.0041c980
cmp dword [eax + 0x18], 8
jb 0x41a856
mov edi, dword [eax + 4]
jmp 0x41a859
lea edi, [eax + 4]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 0x20]
je 0x41a873
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x20]
push edx
push 0x20119
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x41a89c
cmp byte [ebp + 0xc], bl
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x13], 1
je 0x41a8a0
mov byte [esp + 0x13], bl
cmp dword [esp + 0x64], 8
jb 0x41a8b4
mov eax, dword [esp + 0x50]
push eax
call fcn.004abbe4
add esp, 4
cmp byte [esp + 0x13], bl
je 0x41a93e
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
mov edx, dword [esp + 0x48]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push edx
mov byte [esp + 0x1a4], 0xe
call fcn.0041c800
mov eax, dword [esp + 0x60]
push ebx
push eax
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], 0xd
call fcn.004186b0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 0xf
call fcn.00419180
push 0x4e0d4c
lea ecx, [esp + 0x88]
push ecx
call fcn.004ae5f3
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov byte [esp + 0x164], 0x11
call fcn.0040a470
test al, al
jne 0x41aa01
cmp byte [ebp + 0xc], bl
jne 0x41aa01
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
mov eax, dword [esp + 0x48]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push eax
mov byte [esp + 0x1a4], 0x12
call fcn.0041c800
mov ecx, dword [esp + 0x60]
push ebx
push ecx
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], 0x11
call fcn.004186b0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 0x13
call fcn.00419180
push 0x4e0d4c
lea edx, [esp + 0x88]
push edx
call fcn.004ae5f3
xor edi, edi
mov dword [esp + 0x18], ebx
jmp 0x41aa10
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x41ab62
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x41ab62
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x68]
call fcn.0041c980
mov dword [esp + 0x1c], eax
mov byte [esp + 0x160], 0x14
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x41aa7b
mov ecx, dword [esp + 0x44]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41aa84
call fcn.004ac22f
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
add eax, esi
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0041c9b0
add esp, 8
mov edx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x88]
mov byte [esp + 0x164], 0x15
mov edx, dword [edx + 0x20]
push eax
call fcn.0041c630
cmp dword [esp + 0x64], 8
jb 0x41aacd
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
mov byte [esp + 0x160], 0x18
cmp dword [esp + 0x80], 8
jb 0x41aafd
mov edx, dword [esp + 0x6c]
push edx
call fcn.004abbe4
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.0041a300
mov esi, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x84]
push eax
add esi, 0x10
call fcn.0041b900
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x164], 0x11
call fcn.0041c6b0
add edi, 1
add dword [esp + 0x18], 0x1c
jmp 0x41aa10
xor edi, edi
mov dword [esp + 0x14], ebx
jmp 0x41ab70
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41ace5
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x41aca1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
push 1
lea esi, [esp + 0xfc]
call fcn.00423e30
mov byte [esp + 0x160], 0x19
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41abfa
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41ac03
call fcn.004ac22f
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, edx
push ebx
push esi
lea eax, [esp + 0xec]
call fcn.004017d0
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41ac3e
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41ac47
call fcn.004ac22f
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp dword [esi + eax + 0x18], 8
jb 0x41ac58
mov esi, dword [esi + eax + 4]
jmp 0x41ac5c
lea esi, [esi + eax + 4]
lea eax, [esp + 0xdc]
push eax
push esi
lea ecx, [esp + 0x28]
push ecx
call fcn.0040a360
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xdc]
push edx
call fcn.00404080
lea esi, [esp + 0xdc]
mov byte [esp + 0x160], 0x11
call fcn.00423ee0
add edi, 1
add dword [esp + 0x14], 0x1c
jmp 0x41ab70
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x41acdc
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 8
jb 0x41acc1
mov eax, dword [esi - 0x14]
push eax
call fcn.004abbe4
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x41acb0
mov esi, dword [esp + 0x30]
push esi
call fcn.004abbe4
add esp, 4
mov esi, dword [esp + 0x40]
cmp esi, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x41ad39
mov edi, dword [esp + 0x44]
cmp esi, edi
je 0x41ad30
add esi, 0x18
cmp dword [esi], 8
jb 0x41ad15
mov edx, dword [esi - 0x14]
push edx
call fcn.004abbe4
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x41ad04
mov esi, dword [esp + 0x40]
push esi
call fcn.004abbe4
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x41ad54
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004abc64
mov esp, ebp
pop ebp
ret