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

Disassembly:
push 0xffffffffffffffff
push 0x47d113
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0xdc]
lea eax, [esp + 0x1c]
push eax
push str.sysres
push ecx
mov dword [esp + 0xe0], ebx
call fcn.0042a730
test eax, eax
jge 0x4176ca
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xd4], 0xffffffff
je 0x4176c2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
or eax, 0xffffffff
jmp 0x417f45
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.00413c50
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x18]
push ecx
push eax
mov byte [esp + 0xdc], 1
call edx
test eax, eax
mov eax, dword [esp + 0x18]
jge 0x417731
cmp eax, ebx
mov byte [esp + 0xd4], bl
je 0x41770e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xd4], 0xffffffff
je 0x417729
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
or eax, 0xffffffff
jmp 0x417f45
lea edx, [esp + 0x94]
mov dword [esp + 0x94], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jge 0x417752
mov eax, dword [esp + 0x18]
jmp 0x4176fb
push 0xffffffffffffffff
lea ecx, [esi + 0x48]
push ebx
mov dword [esp + 0xcc], ecx
call fcn.00415470
cmp dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
jle 0x417f11
mov ebp, dword [esp + 0x60]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x9c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
mov byte [esp + 0xe0], 3
call eax
test eax, eax
jl 0x417f61
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push 0x486868
push edx
mov byte [esp + 0xe0], 4
call fcn.0042b210
test eax, eax
jl 0x417fa3
lea ecx, [esp + 0x64]
call fcn.00401380
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x64], eax
je 0x417827
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push str.file
push ecx
mov byte [esp + 0xe0], 5
call fcn.0042aa70
test eax, eax
jl 0x417f8b
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push str.name
push eax
mov byte [esp + 0xe0], 6
call fcn.0042aa70
test eax, eax
jl 0x417fae
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push ebp
push edx
mov byte [esp + 0xe0], 7
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x2c]
jl 0x417fc8
mov ecx, dword [eax]
lea edx, [esp + 0xb8]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x417ff6
mov ecx, dword [esp + 0xb8]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00401400
mov edx, dword [esp + 0xb8]
push edx
call edi
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push str.info
push ecx
mov byte [esp + 0xe0], 8
call fcn.0042aa70
test eax, eax
jl 0x417fde
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push ebp
push eax
mov byte [esp + 0xe0], 9
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x34]
jl 0x417ffc
mov ecx, dword [eax]
lea edx, [esp + 0xa0]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x418026
mov ecx, dword [esp + 0xa0]
push ecx
lea ecx, [esp + 0x70]
call fcn.00401400
mov edx, dword [esp + 0xa0]
push edx
call edi
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
push str.type
push ecx
mov byte [esp + 0xe0], 0xa
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x3c]
jl 0x418012
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0xac]
push ecx
push eax
call edx
test eax, eax
jl 0x418044
mov eax, dword [esp + 0xac]
push eax
lea ecx, [esp + 0x74]
call fcn.00401400
mov ecx, dword [esp + 0xac]
push ecx
call edi
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push 0x483974
push eax
mov byte [esp + 0xe0], 0xb
call fcn.0042aa70
test eax, eax
jl 0x41802c
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x40]
push ecx
push str.rootkey
push edx
mov byte [esp + 0xe0], 0xc
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x40]
jl 0x41804a
mov ecx, dword [eax]
lea edx, [esp + 0xa4]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x418074
mov ecx, dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x78]
call fcn.00401400
mov edx, dword [esp + 0xa4]
push edx
call edi
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x44]
push eax
push str.subkey
push ecx
mov byte [esp + 0xe0], 0xd
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x44]
jl 0x418060
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0xb0]
push ecx
push eax
call edx
test eax, eax
jl 0x41808e
mov eax, dword [esp + 0xb0]
push eax
lea ecx, [esp + 0x7c]
call fcn.00401400
mov ecx, dword [esp + 0xb0]
push ecx
call edi
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x48]
push edx
push 0x48681c
push eax
mov byte [esp + 0xe0], 0xe
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x48]
jl 0x41807a
mov ecx, dword [eax]
lea edx, [esp + 0x9c]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x4180a8
mov ecx, dword [esp + 0x9c]
push ecx
lea ecx, [esp + 0x80]
call fcn.00401400
mov edx, dword [esp + 0x9c]
push edx
call edi
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x4c]
push eax
push str.vernum
push ecx
mov byte [esp + 0xe0], 0xf
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x4c]
jl 0x418094
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0xb4]
push ecx
push eax
call edx
test eax, eax
jl 0x4180c2
mov eax, dword [esp + 0xb4]
push eax
lea ecx, [esp + 0x84]
call fcn.00401400
mov ecx, dword [esp + 0xb4]
push ecx
call edi
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x50]
push edx
push 0x483984
push eax
mov byte [esp + 0xe0], 0x10
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x50]
jl 0x4180ae
mov ecx, dword [eax]
lea edx, [esp + 0xa8]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x4180dc
mov ecx, dword [esp + 0xa8]
push ecx
lea ecx, [esp + 0x88]
call fcn.00401400
mov edx, dword [esp + 0xa8]
push edx
call edi
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x54]
push eax
push 0x486804
push ecx
mov byte [esp + 0xe0], 0x11
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x54]
jl 0x4180c8
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x60]
push ecx
push eax
call edx
test eax, eax
jl 0x4180f6
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x8c]
call fcn.00401400
mov ecx, dword [esp + 0x60]
push ecx
call edi
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x58]
push edx
push 0x4867f0
push eax
mov byte [esp + 0xe0], 0x12
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x58]
jl 0x4180e2
mov ecx, dword [eax]
lea edx, [esp + 0xbc]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x418110
mov esi, dword [esp + 0xbc]
mov ecx, 0x4867ec
mov eax, esi
jmp 0x417c70
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417c96
cmp dx, bx
je 0x417c92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417c96
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x417c70
xor eax, eax
jmp 0x417c9b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
setne cl
push esi
mov dword [esp + 0x90], ecx
call edi
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x5c]
push edx
push str.reboot
push eax
mov byte [esp + 0xe0], 0x13
call fcn.0042aa70
test eax, eax
mov eax, dword [esp + 0x5c]
jl 0x4180fc
mov ecx, dword [eax]
lea edx, [esp + 0xc0]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jl 0x418116
mov esi, dword [esp + 0xc0]
mov ecx, 0x4867ec
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417d26
cmp dx, bx
je 0x417d22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417d26
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x417d00
xor eax, eax
jmp 0x417d2b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
setne cl
push esi
mov dword [esp + 0x94], ecx
call edi
sub esp, 0x30
lea edx, [esp + 0x94]
mov ecx, esp
mov dword [esp + 0xf8], esp
push edx
call fcn.00406210
mov ecx, dword [esp + 0xf4]
call fcn.00416910
mov eax, dword [esp + 0x5c]
cmp eax, ebx
mov byte [esp + 0xd4], 0x12
je 0x417d79
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x58]
cmp eax, ebx
mov byte [esp + 0xd4], 0x11
je 0x417d91
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov byte [esp + 0xd4], 0x10
je 0x417da9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov byte [esp + 0xd4], 0xf
je 0x417dc1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov byte [esp + 0xd4], 0xe
je 0x417dd9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov byte [esp + 0xd4], 0xd
je 0x417df1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov byte [esp + 0xd4], 0xc
je 0x417e09
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0xd4], 0xb
je 0x417e21
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov byte [esp + 0xd4], 0xa
je 0x417e39
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov byte [esp + 0xd4], 9
je 0x417e51
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov byte [esp + 0xd4], 8
je 0x417e69
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov byte [esp + 0xd4], 7
je 0x417e81
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0xd4], 6
je 0x417e99
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0xd4], 5
je 0x417eb1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0xd4], 4
je 0x417ec9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
call fcn.00401380
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0xd4], 2
je 0x417eea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x64]
call fcn.004062e0
mov eax, dword [esp + 0x98]
add eax, 1
cmp eax, dword [esp + 0x94]
mov dword [esp + 0x98], eax
jl 0x417782
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0xd4], bl
je 0x417f28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xd4], 0xffffffff
je 0x417f43
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0xd4], 2
je 0x417f79
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x64]
call fcn.004062e0
mov eax, dword [esp + 0x18]
jmp 0x4176fb
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0xd4], 4
je 0x417fa3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
call fcn.00401380
jmp 0x417f61
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0xd4], 5
je 0x417f8b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x417f8b
cmp eax, ebx
mov byte [esp + 0xd4], 6
je 0x417fae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x417fae
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov byte [esp + 0xd4], 7
je 0x417ff6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
jmp 0x417fc8
cmp eax, ebx
mov byte [esp + 0xd4], 8
je 0x417fde
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x417fde
cmp eax, ebx
mov byte [esp + 0xd4], 9
je 0x418026
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x34]
jmp 0x417ffc
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov byte [esp + 0xd4], 0xa
je 0x418044
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
jmp 0x418012
cmp eax, ebx
mov byte [esp + 0xd4], 0xb
je 0x41802c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x41802c
cmp eax, ebx
mov byte [esp + 0xd4], 0xc
je 0x418074
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
jmp 0x41804a
cmp eax, ebx
mov byte [esp + 0xd4], 0xd
je 0x41808e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
jmp 0x418060
cmp eax, ebx
mov byte [esp + 0xd4], 0xe
je 0x4180a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x48]
jmp 0x41807a
cmp eax, ebx
mov byte [esp + 0xd4], 0xf
je 0x4180c2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
jmp 0x418094
cmp eax, ebx
mov byte [esp + 0xd4], 0x10
je 0x4180dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x50]
jmp 0x4180ae
cmp eax, ebx
mov byte [esp + 0xd4], 0x11
je 0x4180f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
jmp 0x4180c8
cmp eax, ebx
mov byte [esp + 0xd4], 0x12
je 0x418110
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x58]
jmp 0x4180e2
mov eax, dword [esp + 0x5c]
jmp 0x4180fc