Function at 0x40a3c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f20
mov eax, dword fs:[0]
push eax
mov eax, 0x1258
call fcn.004c4990
mov eax, dword [0x4f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1028]
call fcn.00401eb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1070]
call fcn.00401eb0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1230], 1
push str.UninstallString
lea ecx, [ebp - 0x10e8]
call fcn.00401d30
mov byte [ebp - 4], 2
push 0x4e6140
lea ecx, [ebp - 0x1100]
call fcn.00401d30
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1230]
push ecx
lea edx, [ebp - 0x10e8]
push edx
lea eax, [ebp - 0x1100]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405180
add esp, 0x14
mov byte [ebp - 0x11ed], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1100]
call fcn.00401be0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10e8]
call fcn.00401be0
movzx ecx, byte [ebp - 0x11ed]
test ecx, ecx
je 0x40a62f
lea ecx, [ebp - 0x1248]
call fcn.00408e70
mov byte [ebp - 4], 4
push 0x4e61b8
lea ecx, [ebp - 0x10d0]
call fcn.00401d30
mov byte [ebp - 4], 5
lea edx, [ebp - 0x10d0]
push edx
lea eax, [ebp - 0x1248]
push eax
lea ecx, [ebp - 0x1028]
push ecx
call fcn.004018c0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10d0]
call fcn.00401be0
lea ecx, [ebp - 0x1248]
call fcn.00408e20
sub eax, 1
push eax
lea ecx, [ebp - 0x1248]
call fcn.00408de0
push eax
lea ecx, [ebp - 0x1088]
call fcn.00401e20
mov byte [ebp - 4], 6
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.004a0100
add esp, 0xc
lea ecx, [ebp - 0x1028]
call fcn.00401b60
mov dword [ebp - 0x11f4], eax
mov eax, dword [ebp - 0x11f4]
add eax, 2
mov dword [ebp - 0x122c], eax
mov ecx, dword [ebp - 0x11f4]
mov dx, word [ecx]
mov word [ebp - 0x1204], dx
add dword [ebp - 0x11f4], 2
cmp word [ebp - 0x1204], 0
jne 0x40a54d
mov eax, dword [ebp - 0x11f4]
sub eax, dword [ebp - 0x122c]
sar eax, 1
mov dword [ebp - 0x1224], eax
lea ecx, [ebp - 0x1088]
call fcn.00401b60
mov dword [ebp - 0x11f8], eax
mov ecx, dword [ebp - 0x11f8]
add ecx, 2
mov dword [ebp - 0x1228], ecx
mov edx, dword [ebp - 0x11f8]
mov ax, word [edx]
mov word [ebp - 0x1206], ax
add dword [ebp - 0x11f8], 2
cmp word [ebp - 0x1206], 0
jne 0x40a5a2
mov ecx, dword [ebp - 0x11f8]
sub ecx, dword [ebp - 0x1228]
sar ecx, 1
mov dword [ebp - 0x1220], ecx
mov edx, dword [ebp - 0x1224]
sub edx, dword [ebp - 0x1220]
push edx
lea ecx, [ebp - 0x1028]
call fcn.00401b60
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004ad08d
add esp, 0xc
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x1070]
call fcn.004059e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1088]
call fcn.00401be0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1248]
call fcn.00408e50
lea ecx, [ebp - 0x11ec]
call fcn.0049a170
mov byte [ebp - 4], 7
push 0
lea ecx, [ebp - 0x1264]
call fcn.00493700
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1040]
call fcn.00401eb0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1160]
call fcn.00401eb0
mov byte [ebp - 4], 0xa
push 0x800
push 0
lea edx, [ebp - 0x1010]
push edx
call fcn.004a0100
add esp, 0xc
push 0x3fe
lea eax, [ebp - 0x1010]
push eax
push 0x4e61bc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x121c], eax
cmp dword [ebp - 0x121c], 0
je 0x40a70d
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x11fc], ecx
mov edx, dword [ebp - 0x11fc]
add edx, 2
mov dword [ebp - 0x1218], edx
mov eax, dword [ebp - 0x11fc]
mov cx, word [eax]
mov word [ebp - 0x1202], cx
add dword [ebp - 0x11fc], 2
cmp word [ebp - 0x1202], 0
jne 0x40a6c4
mov edx, dword [ebp - 0x11fc]
sub edx, dword [ebp - 0x1218]
sar edx, 1
mov dword [ebp - 0x1234], edx
je 0x40a70d
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1040]
call fcn.004059e0
push str.uninstall.dat
lea ecx, [ebp - 0x1040]
call fcn.00404c80
lea ecx, [ebp - 0x1040]
call fcn.00401b60
push eax
lea ecx, [ebp - 0x10b8]
call fcn.00401d30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10b8]
push ecx
lea edx, [ebp - 0x10a0]
push edx
call fcn.004055a0
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10b8]
call fcn.00401be0
push 1
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x10a0]
push ecx
lea ecx, [ebp - 0x11ec]
call fcn.0049d5f0
movzx edx, al
test edx, edx
je 0x40a91e
mov dword [ebp - 0x1200], 0
lea eax, [ebp - 0x1148]
push eax
push 0x4e61e8
mov ecx, dword [ebp - 0x1200]
push ecx
lea ecx, [ebp - 0x1264]
call fcn.00494610
mov ecx, eax
call fcn.00494940
mov ecx, eax
call fcn.004954d0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x1130]
push edx
push 0x4e61f0
mov eax, dword [ebp - 0x1200]
push eax
lea ecx, [ebp - 0x1264]
call fcn.00494610
mov ecx, eax
call fcn.00494940
mov ecx, eax
call fcn.004954d0
mov dword [ebp - 0x1214], eax
push 0x4e393a
mov ecx, dword [ebp - 0x1214]
push ecx
call fcn.00405d40
add esp, 8
mov byte [ebp - 0x11ee], al
lea ecx, [ebp - 0x1130]
call fcn.00402030
movzx edx, byte [ebp - 0x11ee]
test edx, edx
je 0x40a90f
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x1058]
call fcn.00401e20
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1178]
push ecx
push str.name
mov edx, dword [ebp - 0x1200]
push edx
lea ecx, [ebp - 0x1264]
call fcn.00494610
mov ecx, eax
call fcn.00494940
mov ecx, eax
call fcn.004954d0
mov dword [ebp - 0x1210], eax
mov eax, dword [ebp - 0x1210]
mov dword [ebp - 0x120c], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x120c]
push ecx
lea edx, [ebp - 0x1118]
push edx
call fcn.004017c0
add esp, 8
mov dword [ebp - 0x1238], eax
mov eax, dword [ebp - 0x1238]
mov dword [ebp - 0x123c], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x123c]
push ecx
lea ecx, [ebp - 0x1058]
call fcn.00401bc0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1118]
call fcn.00401be0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1178]
call fcn.00402030
lea edx, [ebp - 0x1058]
push edx
call fcn.00405700
add esp, 4
mov dword [ebp - 0x124c], eax
mov eax, dword [ebp - 0x1200]
add eax, 1
mov dword [ebp - 0x1200], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1058]
call fcn.00401be0
jmp 0x40a7bd
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1148]
call fcn.00402030
mov byte [ebp - 0x11ef], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10a0]
call fcn.00402030
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1160]
call fcn.00401be0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1040]
call fcn.00401be0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1264]
call fcn.00494240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11ec]
call fcn.0040a9c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1070]
call fcn.00401be0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.00401be0
movzx eax, byte [ebp - 0x11ef]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b76b
mov esp, ebp
pop ebp
ret