Function at 0x402420
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xca8
mov dl, byte [0x40cf5c]
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], dl
mov byte [esp + 0x43c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x43d]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x64d]
mov byte [esp + 0x64c], dl
mov byte [esp + 0x334], dl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x335]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x545]
mov byte [esp + 0x544], dl
mov byte [esp + 0x124], dl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x125]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x85d]
mov byte [esp + 0x85c], dl
mov byte [esp + 0x1c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x755]
mov byte [esp + 0x754], dl
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0x14], 0
push eax
push 0x408140
push 1
push 0
push 0x408150
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x40252d
push ebx
push str._nCoCreateInstance___returned___d_
call fcn.004029c7
add esp, 8
test ebx, ebx
jl 0x4028cc
mov eax, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
push 0x408160
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ebx, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x402561
push ebx
push str._nIShellLink::QueryInterface___returned___d_
call fcn.004029c7
add esp, 8
test ebx, ebx
jl 0x4028b3
lea eax, [esp + 0xaa4]
push 0x105
push eax
push 0xffffffffffffffff
push 0x40c518
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xaa4]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x4025b4
push ebx
push str._nIPersistFile::Load___returned___d_
call fcn.004029c7
add esp, 8
test ebx, ebx
push esi
jl 0x4028a8
mov eax, dword [esp + 0xc]
push 0x39
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov ebx, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x4025e4
push ebx
push str._nIShellLink::Resolve___returned___d_
call fcn.004029c7
add esp, 8
test ebx, ebx
jl 0x4028a8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x968]
push 4
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x130]
push 0x105
push ecx
push eax
call dword [edx + 0xc]
mov esi, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x402626
push esi
push str._nIShellLink::GetPath___returned___d_
call fcn.004029c7
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test esi, esi
jl 0x402699
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
push 0x105
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x864]
mov edx, ecx
mov esi, edi
mov edi, 0x40c61d
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
push ecx
call ebx
test eax, eax
je 0x402699
lea edi, [esp + 0x860]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40c722
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x230]
push 0x105
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x40271d
lea edi, [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
push 0x105
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x234]
mov eax, ecx
mov esi, edi
mov edi, 0x40c827
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x444]
push ecx
push edx
call ebx
test eax, eax
je 0x40271d
lea edi, [esp + 0x440]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40c92c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push 0x105
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x402798
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push 0x105
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, 0x40ca31
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x75c]
push ecx
push edx
call ebx
test eax, eax
je 0x402798
lea edi, [esp + 0x758]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40cb36
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
jl 0x4027b4
mov eax, dword [esp + 0x18]
mov dword [0x40cc3c], eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x33c]
mov ecx, dword [eax]
push 0x105
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x402846
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x338]
mov dword [0x40ce4c], eax
or ecx, 0xffffffff
xor eax, eax
push 0x105
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x54c]
mov edx, ecx
mov esi, edi
mov edi, 0x40cc40
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x340]
push ecx
call ebx
test eax, eax
je 0x402846
lea edi, [esp + 0x548]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40cd45
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jl 0x402864
mov ax, word [esp + 0x14]
mov word [0x40ce50], ax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x650]
push 0x105
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jl 0x4028a8
lea edi, [esp + 0x650]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40ce52
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
test ebx, ebx
jl 0x4028cc
pop edi
xor eax, eax
pop ebx
add esp, 0xca8
ret
mov eax, ebx
pop edi
pop ebx
add esp, 0xca8
ret