Function at 0x403410
Capabilities:
Query environment variable
Set environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x420014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x178], eax
xor eax, eax
push 0x32
push str.SoftwareMicrosoftWindowsWindows_Error_Reporting
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00401d10
push 0xa
xor eax, eax
mov dword [ebp - 0xc], 0
push str.DontShowUI
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00401d10
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x174]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x170], 1
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4034c3
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x170]
push 4
push ecx
push 4
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push dword [ebp - 0x174]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4034fd
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4034f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b62
push edx
push ecx
call fcn.0040413d
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
cmp edx, 8
jb 0x40354b
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403541
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b62
push edx
push ecx
call fcn.0040413d
add esp, 8
call fcn.00402e10
xor eax, eax
mov dword [ebp - 0x24], 0
push eax
push 0x41325c
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00401d10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00402160
mov edx, dword [ebp - 0x20]
add esp, 8
cmp edx, 8
jb 0x4035bc
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4035b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b7b
push edx
push ecx
call fcn.0040413d
add esp, 8
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401070
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
cmovae ecx, dword [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x3b
je 0x4035ed
push 1
push 0x41328c
lea ecx, [ebp - 0x1c]
call fcn.00401860
push ebx
push esi
push 0
push 0
push 0x413290
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404275
add esp, 4
mov ebx, eax
push esi
push ebx
push 0x413290
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403630
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00401860
push 2
push ebx
call fcn.0040413d
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
push 0x413290
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4036b0
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40369b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b67
push edx
push ecx
call fcn.0040413d
add esp, 8
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x20], 7
call fcn.004029b0
add esp, 4
lea ecx, [ebp - 0x4c]
push 7
push str.update_
call fcn.00401860
push 0xa
push str.update.exe
lea ecx, [ebp - 0x4c]
call fcn.00401860
mov dword [ebp - 0xc], 0
xor ecx, ecx
mov dword [ebp - 8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x40375a
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403750
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b62
push edx
push ecx
call fcn.0040413d
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
push eax
push 0x41325c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00401d10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004019f0
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x4037c9
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4037bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b62
push edx
push ecx
call fcn.0040413d
add esp, 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401b30
test al, al
je 0x403899
lea ecx, [ebp - 0xe8]
call fcn.00401b20
lea ecx, [ebp - 0xe8]
call fcn.00401b00
lea ecx, [ebp - 0xe8]
mov esi, eax
call fcn.00401a50
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x40383d
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403833
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b6c
push edx
push ecx
call fcn.0040413d
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
cmp edx, 8
jb 0x40388b
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403881
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b6c
push edx
push ecx
call fcn.0040413d
add esp, 8
cmp esi, 0x64
je 0x4036b0
jmp 0x403947
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0x413370
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0xe8]
call fcn.00401a50
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4038f9
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4038ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b6c
push edx
push ecx
call fcn.0040413d
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
cmp edx, 8
jb 0x403947
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40393d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b6c
push edx
push ecx
call fcn.0040413d
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
push eax
push 0x41325c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00401d10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402160
add esp, 8
mov ecx, eax
push 0xe
push str.ZoeBrowser.exe
call fcn.00401860
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x4039e5
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4039db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b71
push edx
push ecx
call fcn.0040413d
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x403a33
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403a29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b71
push edx
push ecx
call fcn.0040413d
add esp, 8
mov esi, dword [ebp - 0x178]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a52
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00401d10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401100
mov edx, dword [ebp - 0x38]
pop esi
pop ebx
cmp edx, 8
jb 0x403aba
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403ab0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b76
push edx
push ecx
call fcn.0040413d
add esp, 8
lea ecx, [ebp - 0x16c]
call fcn.004013d0
lea ecx, [ebp - 0x16c]
call fcn.004012c0
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x403b06
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403afc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b7b
push edx
push ecx
call fcn.0040413d
add esp, 8
mov edx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp edx, 8
jb 0x403b50
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403b46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b7b
push edx
push ecx
call fcn.0040413d
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040414b
mov esp, ebp
pop ebp
ret 0x10
call fcn.00407baa
call fcn.00407baa
call fcn.00407baa
call fcn.00407baa
call fcn.00407baa
call fcn.00407baa
int3