Function at 0x403690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424bee
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x433610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareSkypeUpdater
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x403795
mov edx, dword [ebp - 0x10]
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ebx
call fcn.00406460
lea edx, [edi + 4]
push edx
push str.BitsJobId
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401930
cmp eax, ebx
je 0x403810
cmp eax, 2
je 0x403810
call fcn.00401260
mov esi, eax
call fcn.00401810
mov ecx, eax
call fcn.00409030
cmp eax, ebx
je 0x403767
push esi
push str.BitsJobId
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push str.BitsJob:_failed_to_read__s__0x_x_
push eax
mov dword [ebp - 0x14], 0xfffffffe
call fcn.00408ee0
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00406480
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x403781
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401260
mov esi, eax
mov eax, 1
test byte [0x434778], al
jne 0x4037cd
or dword [0x434778], eax
mov ecx, 0x434744
mov byte [ebp - 4], al
call fcn.00408630
push 0x426160
call fcn.00417f35
add esp, 4
mov byte [ebp - 4], 0
mov ecx, 0x434744
call fcn.00409030
cmp eax, ebx
je 0x403781
push esi
push str.SoftwareSkypeUpdater
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push str.BitsJob:_failed_to_open_key___s___0x_x_
push eax
mov dword [ebp - 0x14], 0xfffffffe
call fcn.00408ee0
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 0x104
jge 0x40383b
push 0x104
lea ecx, [edi + 0x18]
call fcn.00401af0
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x10]
push ecx
push eax
push str.BitsJobFile
lea ecx, [ebp - 0x2c]
call fcn.00401490
mov ebx, eax
mov eax, dword [edi + 0x18]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40386e
push ecx
push eax
call fcn.00417d2a
add esp, 8
test eax, eax
js 0x40399e
mov ecx, dword [edi + 0x18]
cmp eax, dword [ecx - 8]
jg 0x40399e
mov dword [ecx - 0xc], eax
mov edx, dword [edi + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
je 0x4038dd
cmp ebx, 2
je 0x4038dd
call fcn.00401260
mov esi, eax
call fcn.00401810
mov ecx, eax
call fcn.00409030
test eax, eax
je 0x4038c7
push esi
push str.BitsJobFile
lea edx, [ebp - 0x18]
push str.BitsJob:_failed_to_read__s__0x_x_
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xfffffffe
call fcn.00408ee0
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00406480
mov eax, dword [ebp - 0x2c]
test eax, eax
jmp 0x403778
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
add edi, 0x14
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.BitsJobError
mov ebx, 4
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403936
cmp dword [ebp - 0x14], ebx
jne 0x40393b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00406480
test esi, esi
je 0x403922
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x40390b
call fcn.00401260
mov edi, eax
call fcn.00401810
mov ecx, eax
call fcn.00409030
test eax, eax
je 0x403973
push edi
push str.BitsJobError
lea edx, [ebp - 0x18]
push str.BitsJob:_failed_to_read__s__0x_x_
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xfffffffe
call fcn.00408ee0
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00406480
test esi, esi
je 0x40398a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004010d0
int3