Function at 0x499b80
Capabilities:
Get file size
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x641d95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
call fcn.004998f0
mov eax, dword [0x6f7b78]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x24c]
xor ebx, ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov edx, dword [ecx + 0x4a0]
lea eax, [esp + 0x24]
push edx
push str.SoftwareDownloadManager_ld
push eax
mov dword [esp + 0x110], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0061fae1
add esp, 0xc
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6fc418
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49a743
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push ebx
lea edx, [esp + 0x1c]
push ebx
mov eax, dword [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x49a743
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ecx + 2]
push edx
call fcn.00622acb
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x58], ebp
jne 0x499c89
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49a743
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebx
push ebx
push 0x6d10ac
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x499cbe
push ebp
call fcn.00622af4
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49a743
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x68]
push edx
push eax
push ebx
push ebx
push str.TPswitch
push ecx
mov byte [esp + 0x11c], 1
mov edi, 1
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x499d01
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x68]
push edx
push eax
push ebx
push ebx
push str.nAggrV
push ecx
mov byte [esp + 0x3b], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x499d2e
cmp dword [esp + 0x68], ebx
setne byte [esp + 0x23]
cmp edi, 4
je 0x499dcc
cmp edi, 5
je 0x499dcc
cmp byte [esp + 0x23], bl
jne 0x499dcc
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x8c]
push edx
push eax
push ebx
push ebx
push str.FileSize
push ecx
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x499d8e
push ebp
call fcn.00622af4
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49a733
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, eax
or edx, ecx
jne 0x499dbb
push ebp
call fcn.00622af4
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49a733
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], ecx
jmp 0x499e73
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
push ebx
mov esi, 8
push str.Duration
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x499e1e
fld qword [esp + 0x38]
fmul qword [0x65b890]
call fcn.0060a154
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edx
jmp 0x499e77
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x44]
push ecx
push edx
push ebx
push ebx
push str.nExpectedSize
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x499e5b
push ebp
call fcn.00622af4
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49a733
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x230], edx
mov dword [eax + 0x234], ecx
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xb4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x6fc418
push ebx
push str.ChList
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x499ebe
push ebp
call fcn.00622af4
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49a733
cmp edi, 4
je 0x49a547
cmp edi, 5
je 0x49a547
cmp byte [esp + 0x23], bl
je 0x49a13a
lea ecx, [esp + 0xb8]
call fcn.00570b20
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xb8]
push eax
mov byte [esp + 0x108], 2
call fcn.00571480
cmp dword [esp + 0x48], ebx
jl 0x499f69
jg 0x499f0d
cmp dword [esp + 0x44], ebx
jbe 0x499f69
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x24c]
lea edx, [esp + 0x1c]
push ebx
push edx
add ecx, 0x20
mov byte [esp + 0x10c], 3
call fcn.0059de90
mov eax, dword [esi + 0x24c]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [eax + 0x31c], 0x10
setne cl
inc ecx
push ecx
push edx
lea ecx, [esp + 0xc0]
call fcn.00571af0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 2
call fcn.00622d8a
mov eax, dword [esp + 0xe0]
cmp eax, ebx
je 0x49a121
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov ebp, eax
cmp dword [esp + 0x48], ebx
jl 0x49a057
jg 0x499fa0
cmp dword [esp + 0x44], ebx
jbe 0x49a057
cmp dword [ebp + 0x44], ebx
je 0x499fbc
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esi, edi
mov edi, dword [ebp + 0x14]
sbb edi, edx
sub esi, 1
sbb edi, ebx
jmp 0x499fc3
mov esi, 1
xor edi, edi
mov eax, dword [ebp + 0x38]
push 0x18
cmp eax, 1
jne 0x49a006
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x499fe9
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
jmp 0x499feb
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp eax, ebx
mov dword [ecx + 0x250], eax
je 0x49a121
mov dword [esp + 0x38], eax
jmp 0x49a112
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a03d
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, ebp
add ecx, esi
mov esi, dword [esp + 0x1c]
adc edx, edi
mov esi, dword [esi + 0xc]
mov dword [eax], ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
jmp 0x49a03f
xor eax, eax
mov edx, dword [esp + 0x38]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x49a121
mov dword [esp + 0x38], eax
jmp 0x49a112
cmp dword [ebp + 0x44], ebx
je 0x49a078
fld qword [ebp + 0x28]
fmul qword [0x65b8a0]
call fcn.0060a154
or esi, 0xffffffff
mov edi, 0xffffffff
sub esi, eax
sbb edi, edx
jmp 0x49a07f
mov esi, 1
xor edi, edi
mov eax, dword [ebp + 0x38]
push 0x18
cmp eax, 1
jne 0x49a0b7
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a0a5
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
jmp 0x49a0a7
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp eax, ebx
mov dword [ecx + 0x250], eax
je 0x49a121
jmp 0x49a0ec
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a0df
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add esi, ecx
mov dword [eax], ecx
adc edi, edx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], edx
mov dword [eax + 0xc], edi
jmp 0x49a0e1
xor eax, eax
mov edx, dword [esp + 0x38]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x49a121
fld qword [ebp + 0x28]
fmul qword [0x65b890]
mov dword [esp + 0x38], eax
call fcn.0060a154
mov ecx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x34]
adc eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov ebp, dword [ebp]
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
jne 0x499f8a
lea ecx, [esp + 0xb8]
mov byte [esp + 0x104], 1
call fcn.00570b80
jmp 0x49a70a
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0xa4]
push eax
push ecx
push ebx
push ebx
mov esi, 0x10
push 0x6d1064
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49a70a
mov eax, dword [esp + 0x58]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
mov dword [esp + 0x30], esi
push eax
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x49a1d8
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a1b1
cmp edi, ebx
jne 0x49a1b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x49a1c3
mov edx, dword [esp + 0x1c]
push 1
push ebx
push ebx
push edx
call fcn.0060c730
add esi, eax
adc edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jg 0x49a1d8
jl 0x49a1d4
cmp esi, ebx
jae 0x49a1d8
xor esi, esi
xor edi, edi
push 0x18
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a1fb
sub esi, 1
mov dword [eax], ebx
sbb edi, ebx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
jmp 0x49a1fd
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp eax, ebx
mov dword [ecx + 0x250], eax
je 0x49a70a
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0xffffffff
je 0x49a70a
push eax
lea edx, [esp + 0x34]
push 0x6c91b4
push edx
call fcn.0060a593
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x49a70a
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x50], bx
mov edx, dword [esp + 0xa4]
lea ecx, [esp + 0xb8]
push 0xa
push ecx
push edx
call fcn.0060b232
mov esi, eax
mov eax, 0x6c900c
add esp, 0xc
test eax, eax
je 0x49a43c
cmp esi, ebx
je 0x49a43c
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov word [esp + 0x60], bx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x104], 5
call fcn.00401070
mov edi, 0x6c900c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49a30f
push ebx
push ebx
push 0xffffffffffffffff
push 0x6c900c
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [esp + 0x64], eax
je 0x49a30f
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [esp + 0x5c], eax
je 0x49a30f
mov edx, dword [esp + 0x64]
push edx
push eax
push 0xffffffffffffffff
push 0x6c900c
push ebx
push ebx
call ebp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x7c]
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov word [esp + 0x84], bx
call fcn.00401f20
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x108], 6
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov word [esp + 0x74], bx
call fcn.00401f20
lea ecx, [esp + 0x4c]
mov byte [esp + 0x104], 7
call fcn.00401070
mov eax, dword [esp + 0x7c]
cmp eax, ebx
mov edi, eax
jne 0x49a374
lea edi, [esp + 0x80]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jne 0x49a380
lea eax, [esp + 0x70]
mov esi, dword [esp + 0x64]
push eax
call fcn.00609a4e
push edi
mov ebp, eax
call fcn.00609a4e
add esi, ebp
lea ebp, [eax + esi + 3]
lea esi, [ebp + ebp]
push esi
call fcn.00622acb
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x4c], edi
je 0x49a409
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov edx, eax
jne 0x49a3cf
lea edx, [esp + 0x70]
mov ecx, dword [esp + 0x7c]
cmp ecx, ebx
jne 0x49a3de
lea ecx, [esp + 0x80]
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x49a3ea
lea eax, [esp + 0x60]
push edx
push ecx
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
call fcn.006099de
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 6
call fcn.00401070
lea ecx, [esp + 0x7c]
mov byte [esp + 0x104], 5
call fcn.00401070
lea ecx, [esp + 0x5c]
mov byte [esp + 0x104], 4
call fcn.00401070
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x49a448
lea eax, [esp + 0x50]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49a4fb
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
jne 0x49a48d
cmp ebp, ebx
jne 0x49a48d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x49a511
mov eax, dword [esp + 0x1c]
push 1
push ebx
push ebx
push eax
call fcn.0060c730
add esi, eax
push edi
adc ebp, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
mov dword [esp + 0x108], 4
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a4ea
mov edi, dword [esp + 0xac]
mov ecx, edi
add ecx, esi
mov esi, dword [esp + 0xb0]
mov edx, esi
mov dword [eax], edi
adc edx, ebp
sub ecx, 1
sbb edx, ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
jmp 0x49a4ec
xor eax, eax
mov ecx, dword [esp + 0x38]
cmp eax, ebx
mov dword [ecx + 0x10], eax
je 0x49a531
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x104], 1
call fcn.00401070
jmp 0x49a213
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x104], 1
call fcn.00401070
jmp 0x49a70a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x104], 1
call fcn.00401070
jmp 0x49a70a
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x94]
push edx
push eax
push ebx
push ebx
push 0x6d1064
push ecx
mov dword [esp + 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x49a594
push ebp
call fcn.00622af4
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
jmp 0x49a733
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0xa4]
push ecx
push str._dkf
push edx
xor esi, esi
xor edi, edi
call fcn.0060a593
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x30]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x50], 0x10
call ebp
cmp eax, ebx
jne 0x49a633
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x49a61e
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
mov ecx, dword [esp + 0x9c]
jl 0x49a633
jg 0x49a610
cmp dword [esp + 0x30], ecx
jbe 0x49a633
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
sub esi, ecx
sbb edi, eax
jmp 0x49a633
mov ecx, dword [esp + 0x9c]
cmp eax, ecx
jbe 0x49a62f
sub eax, ecx
mov esi, eax
jmp 0x49a631
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x94]
push 0x18
cmp eax, ebx
jne 0x49a677
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a661
sub esi, 1
mov dword [eax], ebx
sbb edi, ebx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
jmp 0x49a663
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp eax, ebx
mov dword [ecx + 0x250], eax
je 0x49a70a
jmp 0x49a6bc
call fcn.00622acb
add esp, 4
cmp eax, ebx
je 0x49a6af
mov ebp, dword [esp + 0x9c]
mov edx, ebx
mov ecx, ebp
mov dword [eax], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add ecx, esi
adc edx, edi
sub ecx, 1
sbb edx, ebx
mov esi, ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
jmp 0x49a6b1
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x49a70a
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x98]
cmp eax, 0xffffffff
je 0x49a70a
push eax
lea eax, [esp + 0x70]
push 0x6c91b4
push eax
call fcn.0060a593
add esp, 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x94]
lea eax, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x50], 0x10
call ebp
cmp eax, ebx
je 0x49a59e
mov edx, dword [esp + 0x58]
push edx
call fcn.00622af4
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x28]
mov byte [edx + 0xc], 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], bl
call fcn.00622d8a
lea ecx, [esp + 0x24]
mov dword [esp + 0x104], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0xfc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret