Function at 0x49f690
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5609ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x900
mov edx, dword [0x5c74b0]
push ebp
mov ebp, ecx
lea eax, [esp + 0x90]
push edi
lea ecx, [esp + 0x138]
push eax
xor edi, edi
push ecx
push edi
push edi
push str.Extensions
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0xac], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x49f701
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x900]
mov dword fs:[0], ecx
add esp, 0x90c
ret
push ebx
push esi
mov ecx, ebp
call fcn.004a0a10
lea ecx, [esp + 0x88]
call fcn.0053d109
mov dword [esp + 0x918], edi
lea ebx, [esp + 0x140]
push 0x20
push ebx
mov esi, ebx
call fcn.00526d60
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x49f73c
sub eax, esi
inc ebx
jmp 0x49f74a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, 0x1f
jle 0x49f756
mov eax, 0x1f
jmp 0x49f75a
test eax, eax
jle 0x49f7bc
mov ecx, eax
lea edi, [esp + 0xa0]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0xa0], 0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x30]
call fcn.0054222c
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0x920], 1
call fcn.0053d2e5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x918], 0
call fcn.005421be
xor edi, edi
cmp ebx, edi
jne 0x49f724
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x90]
test eax, eax
jle 0x49fcb3
mov eax, dword [esp + 0x34]
xor bl, bl
xor ebp, ebp
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x49f8b1
mov ecx, dword [esp + 0x34]
lea esi, [ebp*8]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esi + edx]
mov ecx, dword [ecx + edi*4]
push eax
push ecx
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x49f89b
mov eax, dword [0x5c2a74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x34]
mov edx, esi
mov byte [esp + 0x918], 3
mov ecx, dword [ebx + 8]
add edx, ecx
lea ecx, [esp + 0x60]
push edx
call fcn.005422f7
mov eax, dword [ebx + 8]
lea ecx, [esi + eax + 4]
push ecx
lea ecx, [esp + 0x68]
call fcn.005422f7
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004a1040
mov bl, 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x918], 4
call fcn.005421be
lea ecx, [esp + 0x60]
mov byte [esp + 0x918], 2
call fcn.005421be
mov ecx, dword [esp + 0x34]
inc ebp
cmp ebp, dword [ecx + 0xc]
jl 0x49f800
test bl, bl
jne 0x49fc9f
mov edx, dword [esp + 0x8c]
push 0x5b83b0
mov eax, dword [edx + edi*4]
push eax
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x49f935
mov eax, dword [0x5c2a74]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
push str.R00__R01__R02__R03__R04__R05__R06__R07__R08__R09
lea ecx, [esp + 0x5c]
mov byte [esp + 0x91c], 5
call fcn.00542347
push str.application_x_rar_compressed
lea ecx, [esp + 0x60]
call fcn.00542347
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a1040
mov bl, 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x918], 6
call fcn.005421be
lea ecx, [esp + 0x58]
mov byte [esp + 0x918], 2
call fcn.005421be
mov edx, dword [esp + 0x8c]
push 0x5b8378
mov eax, dword [edx + edi*4]
push eax
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x49f9ce
mov eax, dword [0x5c2a74]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push str.R10__R11__R12__R13__R14__R15__R16__R17__R18__R19
lea ecx, [esp + 0x84]
mov byte [esp + 0x91c], 7
call fcn.00542347
push str.application_x_rar_compressed
lea ecx, [esp + 0x88]
call fcn.00542347
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x80]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a1040
mov bl, 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x918], 8
call fcn.005421be
lea ecx, [esp + 0x80]
mov byte [esp + 0x918], 2
call fcn.005421be
mov edx, dword [esp + 0x8c]
push 0x5b8340
mov eax, dword [edx + edi*4]
push eax
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x49fa55
mov eax, dword [0x5c2a74]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
push str.A00__A01__A02__A03__A04__A05__A06__A07__A08__A09
lea ecx, [esp + 0x7c]
mov byte [esp + 0x91c], 9
call fcn.00542347
push str.application_x_compressed
lea ecx, [esp + 0x80]
call fcn.00542347
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a1040
mov bl, 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x918], 0xa
call fcn.005421be
lea ecx, [esp + 0x78]
mov byte [esp + 0x918], 2
call fcn.005421be
mov edx, dword [esp + 0x8c]
push 0x5b8308
mov eax, dword [edx + edi*4]
push eax
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x49fad7
mov eax, dword [0x5c2a74]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
push str.A10__A11__A12__A13__A14__A15__A16__A17__A18__A19
lea ecx, [esp + 0x74]
mov byte [esp + 0x91c], 0xb
call fcn.00542347
push str.application_x_compressed
lea ecx, [esp + 0x78]
call fcn.00542347
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a1040
lea ecx, [esp + 0x74]
mov byte [esp + 0x918], 0xc
call fcn.005421be
mov byte [esp + 0x918], 2
lea ecx, [esp + 0x70]
jmp 0x49fc9a
test bl, bl
jne 0x49fc9f
mov edx, dword [0x5c2a74]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x2c]
mov byte [esp + 0x918], 0xd
mov ecx, dword [eax + edi*4]
push ecx
push 0x5b82d0
push edx
call fcn.0053afda
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x20019
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49fbdb
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x38]
lea eax, [esp + 0xc0]
push edx
push eax
push 0
push 0
push str.Content_Type
push ecx
mov dword [esp + 0x50], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49fbd0
mov eax, dword [0x5c2a74]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x68]
mov byte [esp + 0x918], 0xe
lea eax, [edx + edi*4]
push eax
call fcn.005422f7
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x70]
call fcn.00542347
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004a1040
mov bl, 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x918], 0xf
call fcn.005421be
lea ecx, [esp + 0x68]
mov byte [esp + 0x918], 0xd
call fcn.005421be
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x918], 2
call fcn.005421be
test bl, bl
jne 0x49fc9f
mov eax, dword [0x5c2a74]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x918], 0x10
lea eax, [edx + edi*4]
push eax
call fcn.005422f7
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x40]
mov edx, dword [ecx + edi*4]
push edx
push str.application__s
push eax
call fcn.0053afda
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004a1040
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x40]
mov ecx, dword [eax + edi*4]
push ecx
push str.application_x__s
push edx
call fcn.0053afda
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a1040
lea ecx, [esp + 0x40]
mov byte [esp + 0x918], 0x11
call fcn.005421be
mov byte [esp + 0x918], 2
lea ecx, [esp + 0x3c]
call fcn.005421be
mov eax, dword [esp + 0x90]
inc edi
cmp edi, eax
jl 0x49f7ed
mov ebp, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x44], 0x56f1d4
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x20]
xor edi, edi
cmp ecx, eax
mov byte [esp + 0x918], 0x12
jle 0x49fd98
xor bl, bl
xor esi, esi
test eax, eax
jle 0x49fd64
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + esi*8 + 4]
mov ecx, dword [ecx + edi*8 + 4]
push eax
push ecx
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x49fd57
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x30]
lea eax, [edx + esi*8]
push eax
call fcn.00541f33
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x918], 0x13
mov edx, dword [ecx + edi*8]
mov ecx, dword [esp + 0x48]
push edx
push eax
lea edx, [ecx + esi*8]
push str._s___s
push edx
call fcn.0053afda
add esp, 0x10
lea ecx, [esp + 0x30]
mov bl, 1
mov byte [esp + 0x918], 0x12
call fcn.005421be
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x49fceb
test bl, bl
jne 0x49fd8b
mov ecx, dword [esp + 0x1c]
mov ebx, eax
inc eax
push 0xffffffffffffffff
lea esi, [ecx + edi*8]
push eax
lea ecx, [esp + 0x4c]
call fcn.004a0ec0
mov edx, dword [esp + 0x48]
push esi
lea ecx, [edx + ebx*8]
call fcn.0048d750
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
inc edi
cmp edi, ecx
jl 0x49fce3
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
xor esi, esi
mov byte [esp + 0x918], 0x15
test eax, eax
jle 0x49fe95
mov edx, dword [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [edx + esi*8]
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x14]
not ecx
dec ecx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + ecx + 1]
cmp eax, 0xbe
ja 0x49fe09
mov edi, dword [edx + esi*8 + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 4]
cmp eax, 0xf0
jbe 0x49fe4f
mov ecx, dword [ebp + 0x18]
push 0x5b82a0
inc ecx
mov dword [ebp + 0x18], ecx
lea ecx, [esp + 0x14]
call fcn.0054259a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004a01a0
push 0x5c6ff0
lea ecx, [esp + 0x18]
call fcn.00542347
push 0x5c6ff0
lea ecx, [esp + 0x14]
call fcn.00542347
mov ecx, dword [esp + 0x48]
lea edx, [ecx + esi*8]
lea ecx, [esp + 0x14]
push edx
call fcn.005425d6
mov eax, dword [esp + 0x48]
lea ecx, [eax + esi*8 + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.005425d6
push 0x7c
lea ecx, [esp + 0x18]
call fcn.005425c1
push 0x7c
lea ecx, [esp + 0x14]
call fcn.005425c1
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x49fdb8
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x49feb3
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49fedd
mov ebx, dword [ebp + 0x18]
push 0x5b82a0
inc ebx
lea ecx, [esp + 0x14]
mov dword [ebp + 0x18], ebx
call fcn.0054259a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004a01a0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
call fcn.004a0ec0
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x49ff10
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.004a11d0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00542796
add esp, 4
mov dword [esp + 0x1c], esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call fcn.0053d19c
lea ecx, [esp + 0x10]
mov byte [esp + 0x918], 0x14
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x918], 0x12
call fcn.005421be
mov ebp, 0x56f1d4
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x48]
mov byte [esp + 0x918], 0x16
test esi, esi
je 0x49ffa7
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], esi
test eax, eax
je 0x49ff9e
lea edi, [eax]
mov bl, 0x17
lea ecx, [esi + 4]
mov byte [esp + 0x918], bl
call fcn.005421be
mov ecx, esi
mov byte [esp + 0x918], 0x16
call fcn.005421be
add esi, 8
dec edi
mov dword [esp + 0x38], esi
jne 0x49ff72
mov esi, dword [esp + 0x48]
push esi
call fcn.00542796
add esp, 4
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x918], 0x18
test esi, esi
je 0x4a0000
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], esi
test eax, eax
je 0x49fff7
lea edi, [eax]
mov bl, 0x19
lea ecx, [esi + 4]
mov byte [esp + 0x918], bl
call fcn.005421be
mov ecx, esi
mov byte [esp + 0x918], 0x18
call fcn.005421be
add esi, 8
dec edi
mov dword [esp + 0x38], esi
jne 0x49ffcb
mov esi, dword [esp + 0x1c]
push esi
call fcn.00542796
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x918], 0xffffffff
call fcn.0053d13c
mov ecx, dword [esp + 0x910]
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x90c
ret