Function at 0x417230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452044
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ebx, ecx
push 0x206
push eax
lea ecx, [ebp - 0x42e]
push ecx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x478], esi
mov word [ebp - 0x430], ax
call fcn.0043f7e0
add esp, 0xc
test edi, edi
je 0x417561
test esi, esi
je 0x417561
push 0x5c
push edi
call fcn.0043c850
add esp, 8
test eax, eax
je 0x417561
add eax, 2
push eax
lea edx, [ebp - 0x430]
push 0x104
push edx
call fcn.0043cc52
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
add esp, 0xc
push esi
lea ecx, [ebp - 0x430]
push ecx
mov ecx, ebx
call edx
test eax, eax
je 0x417561
lea edi, [ebx + 0x54]
mov edx, 0x457794
mov dword [ebp - 0x484], edi
call fcn.00408810
lea eax, [ebp - 0x46c]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebx + 0x4c], edi
call fcn.004086e0
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov edi, 0x104
sub eax, edi
or eax, edx
jge 0x417342
mov eax, edi
lea ecx, [ebp - 0x46c]
call fcn.00408aa0
mov ecx, dword [ebp - 0x46c]
cmp dword [ecx - 8], edi
jge 0x417351
push 0x80070057
call fcn.00407180
push edi
mov dword [ecx - 0xc], edi
mov eax, dword [ebp - 0x46c]
push ecx
xor edx, edx
push esi
mov word [eax + 0x208], dx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [ebp - 0x46c]
call fcn.00418870
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push str.QQPATH
mov eax, esi
push eax
call fcn.004183c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 1
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
push str.APPDATA
lea eax, [ebp - 0x46c]
push eax
call fcn.004183c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 0
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push eax
push str.TEMP
lea eax, [ebp - 0x46c]
push eax
call fcn.004183c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 2
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
push str.COMMON
lea eax, [ebp - 0x46c]
push eax
call fcn.004183c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 3
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
push str.MYDOCUMENT
lea eax, [ebp - 0x46c]
push eax
call fcn.004183c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x45812c
push 0x45ab20
lea ecx, [ebp - 0x46c]
push ecx
call fcn.004183c0
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx - 0xc]
lea esi, [ebp - 0x46c]
call fcn.004088b0
mov edi, dword [ebp - 0x478]
push eax
push 0x104
push edi
call fcn.0043cc52
add esp, 0xc
call fcn.00418870
mov ecx, dword [ebp - 0x474]
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
push ecx
push edi
mov ecx, ebx
call edx
test eax, eax
jne 0x417581
mov eax, esi
call fcn.00408780
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8
mov eax, edi
lea ecx, [ebp - 0x44c]
call fcn.004013d0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x438]
mov eax, dword [ebp - 0x44c]
cmp edi, 8
jae 0x4175a9
lea eax, [ebp - 0x44c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4175b0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x226]
push ecx
mov word [ebp - 0x228], ax
call fcn.0043f7e0
mov eax, dword [ebp - 0x44c]
add esp, 0xc
cmp edi, 8
jae 0x4175f1
lea eax, [ebp - 0x44c]
push eax
lea edx, [ebp - 0x228]
push esi
push edx
call fcn.0043cc52
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
jmp 0x417620
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417620
sub eax, edx
sar eax, 1
push 0x45812c
lea ecx, [ebp + eax*2 - 0x228]
push esi
push ecx
call fcn.0043c8f2
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x44c]
push eax
mov edi, 1
mov dword [ebp - 0x474], 0x2e
call fcn.00412a40
cmp eax, 0xffffffff
je 0x417820
push 0xffffffffffffffff
mov ecx, eax
lea esi, [ebp - 0x468]
lea edx, [ebp - 0x44c]
call fcn.004129a0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x454]
mov esi, dword [ebp - 0x468]
mov ecx, esi
cmp eax, 8
jae 0x4176a2
lea ecx, [ebp - 0x468]
mov edx, dword [ebp - 0x458]
lea edx, [ecx + edx*2]
mov ecx, esi
cmp eax, 8
jae 0x4177cf
lea ecx, [ebp - 0x468]
mov eax, ecx
cmp eax, ecx
je 0x4176da
push edx
lea edx, [ebp - 0x47c]
push edx
mov ebx, ecx
call fcn.00418cc0
mov ebx, dword [ebp - 0x480]
add esp, 8
cmp word [ebx + 0x60], 0x31
jne 0x417815
push 0xffffffffffffffff
lea ecx, [ebx + 0x64]
push ecx
xor eax, eax
lea edx, [ebp - 0x20]
push 7
push edx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call fcn.0043e19c
add esp, 0x10
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x228]
call fcn.004086e0
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 8
call fcn.00418380
movzx eax, word [ebx + 0x62]
cmp eax, 0x52
jne 0x4177d6
mov edx, str..dll
lea eax, [ebp - 0x470]
call fcn.00418380
lea ecx, [ebp - 0x47c]
push ecx
lea edi, [ebp - 0x470]
call fcn.004187b0
push eax
lea edx, [ebp - 0x478]
push edx
mov ebx, 0x45ab34
mov byte [ebp - 4], 9
call fcn.004186d0
push eax
lea eax, [ebp - 0x474]
push eax
lea ebx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.004186d0
add esp, 0x14
mov esi, dword [ebp - 0x480]
lea edi, [esi + 0x50]
mov byte [ebp - 4], 0xb
call fcn.004087a0
lea eax, [ebp - 0x474]
call fcn.00408780
lea eax, [ebp - 0x478]
call fcn.00408780
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 8
call fcn.00408780
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 0
jmp 0x4177f9
mov eax, esi
jmp 0x4176be
cmp eax, 0x45
jne 0x4177f9
mov edx, str..exe
lea eax, [ebp - 0x470]
call fcn.00418380
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 1
mov edi, dword [ebp - 0x484]
lea eax, [ebp - 0x470]
call fcn.004087a0
lea eax, [ebp - 0x470]
call fcn.00408780
lea esi, [ebp - 0x468]
call fcn.00401410
lea esi, [ebp - 0x44c]
call fcn.00401410
lea eax, [ebp - 0x46c]
call fcn.00408780
mov eax, 1
jmp 0x417563