Function at 0x406370
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x40c]
sub esp, 0x40c
push 0xffffffffffffffff
push 0x442320
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4576f0]
xor eax, ebp
mov dword [ebp + 0x408], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 0x414]
mov ebx, edx
push 0x104
lea eax, [ebp + 0x200]
push eax
push str._temp_
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x20], 0xffffffff
call fcn.00406720
lea edx, [ebp - 0x1c]
push edx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004024b0
call fcn.00413921
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40640d
push 0x80004005
call fcn.004027a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x200]
mov byte [ebp - 4], 2
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406430
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp + 0x200]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402390
push 1
push 0x44ce30
lea ecx, [ebp - 0x14]
call fcn.004079b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004079b0
mov eax, dword [ebx + 0x3d8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
shr esi, 0xa
movzx edx, si
shl edx, 0x10
push edx
push 0
push 0x401
push eax
call edi
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x38]
call fcn.0041a0f3
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.004138e5
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x418]
push 1
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041aa55
mov edx, dword [ebp - 0x14]
push 0x9001
push edx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], eax
call fcn.00414a02
push str.Downloading_latest_version_of_RegSERVO
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00403610
mov byte [ebp - 4], 7
mov eax, dword [ebx + 0x2a4]
mov eax, dword [eax + 0x14c]
lea ecx, [ebx + 0x2a4]
lea edx, [ebp - 0x18]
push edx
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406530
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push 0x200
lea eax, [ebp]
push eax
call edx
mov esi, eax
test esi, esi
je 0x4065ad
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004140c5
add dword [ebp - 0x20], esi
call fcn.00413921
test eax, eax
jne 0x40656c
push 0x80004005
call fcn.004027a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x3d8]
push 0
shr ecx, 0xa
push ecx
push 0x402
push edx
mov esi, eax
call edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406530
mov ecx, dword [esi]
push esi
jmp 0x406529
push str.Downloaded_the_latest_version_of_RegSERVO
lea ecx, [ebp - 0x18]
call fcn.00403610
mov byte [ebp - 4], 8
mov edx, dword [ebx + 0x2a4]
mov edx, dword [edx + 0x14c]
lea ecx, [ebx + 0x2a4]
lea eax, [ebp - 0x18]
push eax
call edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4c]
call fcn.00414329
lea ecx, [ebp - 0x38]
call fcn.0041a6ca
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004144a8
mov byte [ebp - 4], 3
call fcn.004138fd
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0041a7ad
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40664d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x418]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406699
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4066f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x408]
xor ecx, ebp
call fcn.0042a6b1
add ebp, 0x40c
mov esp, ebp
pop ebp
ret 8