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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x514642
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
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 + 0x24], ebx
je 0x459e4d
cmp eax, 2
jne 0x45a309
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x4c]
mov eax, edi
mov dword [esp + 0x160], ebx
call fcn.00457130
cmp dword [eax + 0x18], 8
jb 0x459e72
mov eax, dword [eax + 4]
jmp 0x459e75
add eax, 4
mov esi, dword [edi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x459e8f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push edx
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x459ec0
cmp byte [ebp + 0xc], bl
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x13], 1
je 0x459ec4
mov byte [esp + 0x13], bl
cmp dword [esp + 0x64], 8
jb 0x459ed8
mov eax, dword [esp + 0x50]
push eax
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x13], bl
je 0x459f59
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51a1d4
mov word [esi + 4], bx
call fcn.00407330
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push edi
mov byte [esp + 0x1a4], 1
call fcn.00456fb0
mov ecx, dword [esp + 0x5c]
push ebx
push ecx
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], bl
call fcn.004581e0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 2
call fcn.00458cc0
push 0x538898
lea edx, [esp + 0x88]
push edx
call fcn.004ed8eb
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 + 0x20]
mov byte [esp + 0x164], 4
call fcn.0043c340
test al, al
jne 0x45a001
cmp byte [ebp + 0xc], bl
jne 0x45a001
push ebx
sub esp, 0x1c
mov edx, 0x51a1d4
mov eax, esp
mov dword [esp + 0x44], esp
call fcn.00406ac0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push edi
mov byte [esp + 0x1a4], 5
call fcn.00456fb0
mov ecx, dword [esp + 0x5c]
push ebx
push ecx
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], 4
call fcn.004581e0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 6
call fcn.00458cc0
push 0x538898
lea edx, [esp + 0x88]
push edx
call fcn.004ed8eb
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea esp, [esp]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x45a15a
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 0x45a15a
lea esi, [esp + 0x4c]
mov eax, edi
call fcn.00457130
mov dword [esp + 0x24], eax
mov byte [esp + 0x160], 7
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x45a07d
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 0x45a086
call fcn.004e89bf
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
add esi, eax
lea ecx, [esp + 0x68]
push esi
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00457160
add esp, 8
push eax
lea eax, [esp + 0x88]
mov byte [esp + 0x164], 8
mov edx, dword [edi + 0x20]
push eax
call fcn.00456dc0
cmp dword [esp + 0x80], 8
jb 0x45a0ce
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004e7d7e
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 0x45a0fe
mov edx, dword [esp + 0x50]
push edx
call fcn.004e7d7e
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.00459df0
add esp, 0xc
lea eax, [esp + 0x84]
push eax
lea esi, [edi + 0x10]
call fcn.00457bf0
lea ecx, [esp + 0x84]
mov byte [esp + 0x160], 4
call fcn.00456e40
add dword [esp + 0x14], 1
add dword [esp + 0x18], 0x1c
jmp 0x45a010
xor edi, edi
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45a2b1
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 0x45a291
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x40], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51a1d4
mov word [esi + 4], bx
call fcn.00407330
push 1
lea esi, [esp + 0xfc]
call fcn.00446110
mov byte [esp + 0x160], 0xc
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45a1ea
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 0x45a1f3
call fcn.004e89bf
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, ecx
push ebx
push esi
lea eax, [esp + 0xec]
call fcn.00401610
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45a22e
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 0x45a237
call fcn.004e89bf
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp dword [esi + eax + 0x18], 8
jb 0x45a248
mov esi, dword [esi + eax + 4]
jmp 0x45a24c
lea esi, [esi + eax + 4]
lea edx, [esp + 0xdc]
push edx
push esi
lea eax, [esp + 0x24]
push eax
call fcn.0043c230
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xdc]
push ecx
call fcn.00456430
lea esi, [esp + 0xdc]
mov byte [esp + 0x160], 4
call fcn.004461c0
add edi, 1
add dword [esp + 0x14], 0x1c
jmp 0x45a160
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
push edx
mov eax, esi
call fcn.00407900
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call fcn.004e7d7e
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 0x45a2e3
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x44]
push ecx
call fcn.00407900
mov edx, dword [esp + 0x44]
add esp, 4
push edx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x45a309
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x45a31a
cmp eax, 2
jne 0x45a844
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x4c]
mov dword [esp + 0x160], 0xd
call fcn.00457130
cmp dword [eax + 0x18], 8
jb 0x45a345
mov edi, dword [eax + 4]
jmp 0x45a348
lea edi, [eax + 4]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45a362
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push ebx
push edi
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x45a38f
cmp byte [ebp + 0xc], bl
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x13], 1
je 0x45a393
mov byte [esp + 0x13], bl
cmp dword [esp + 0x64], 8
jb 0x45a3a7
mov edx, dword [esp + 0x50]
push edx
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x13], bl
je 0x45a431
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51a1d4
mov word [esi + 4], bx
call fcn.00407330
mov eax, dword [esp + 0x48]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push eax
mov byte [esp + 0x1a4], 0xe
call fcn.00456fb0
mov ecx, dword [esp + 0x5c]
push ebx
push ecx
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], 0xd
call fcn.004581e0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 0xf
call fcn.00458cc0
push 0x538898
lea edx, [esp + 0x88]
push edx
call fcn.004ed8eb
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 + 0x20]
mov byte [esp + 0x164], 0x11
call fcn.0043c340
test al, al
jne 0x45a4f4
cmp byte [ebp + 0xc], bl
jne 0x45a4f4
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51a1d4
mov word [esi + 4], bx
call fcn.00407330
mov edx, dword [esp + 0x48]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
push edx
mov byte [esp + 0x1a4], 0x12
call fcn.00456fb0
mov eax, dword [esp + 0x5c]
push ebx
push eax
lea esi, [esp + 0x120]
mov byte [esp + 0x1a4], 0x11
call fcn.004581e0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 0x13
call fcn.00458cc0
push 0x538898
lea ecx, [esp + 0x88]
push ecx
call fcn.004ed8eb
xor edi, edi
mov dword [esp + 0x18], ebx
lea ebx, [ebx]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x45a652
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 0x45a652
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x68]
call fcn.00457130
mov dword [esp + 0x24], eax
mov byte [esp + 0x160], 0x14
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x45a56b
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 0x45a574
call fcn.004e89bf
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
lea eax, [esi + edx]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00457160
add esp, 8
mov ecx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x88]
mov byte [esp + 0x164], 0x15
mov edx, dword [ecx + 0x20]
push eax
call fcn.00456dc0
cmp dword [esp + 0x64], 8
jb 0x45a5be
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004e7d7e
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 0x45a5ee
mov edx, dword [esp + 0x6c]
push edx
call fcn.004e7d7e
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.00459df0
mov esi, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x84]
push eax
add esi, 0x10
call fcn.00457bf0
lea ecx, [esp + 0x84]
mov byte [esp + 0x160], 0x11
call fcn.00456e40
add edi, 1
add dword [esp + 0x18], 0x1c
jmp 0x45a500
xor edi, edi
mov dword [esp + 0x14], ebx
jmp 0x45a660
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45a7d5
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 0x45a791
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x40], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51a1d4
mov word [esi + 4], bx
call fcn.00407330
push 1
lea esi, [esp + 0xfc]
call fcn.00446110
mov byte [esp + 0x160], 0x19
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45a6ea
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 0x45a6f3
call fcn.004e89bf
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, ecx
push ebx
push esi
lea eax, [esp + 0xec]
call fcn.00401610
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45a72e
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 0x45a737
call fcn.004e89bf
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp dword [esi + eax + 0x18], 8
jb 0x45a748
mov esi, dword [esi + eax + 4]
jmp 0x45a74c
lea esi, [esi + eax + 4]
lea edx, [esp + 0xdc]
push edx
push esi
lea eax, [esp + 0x24]
push eax
call fcn.0043c230
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xdc]
push ecx
call fcn.00456430
lea esi, [esp + 0xdc]
mov byte [esp + 0x160], 0x11
call fcn.004461c0
add edi, 1
add dword [esp + 0x14], 0x1c
jmp 0x45a660
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x45a7cc
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 8
jb 0x45a7b1
mov edx, dword [esi - 0x14]
push edx
call fcn.004e7d7e
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 0x45a7a0
mov esi, dword [esp + 0x30]
push esi
call fcn.004e7d7e
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 0x45a829
mov edi, dword [esp + 0x44]
cmp esi, edi
je 0x45a820
add esi, 0x18
cmp dword [esi], 8
jb 0x45a805
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004e7d7e
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x45a7f4
mov esi, dword [esp + 0x40]
push esi
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x45a844
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.004e7d6f
mov esp, ebp
pop ebp
ret