Function at 0x421480
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454af2
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4214e0
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x290], 0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x421521
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401cc0
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
push 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x421857
cmp eax, dword [ebx - 8]
jg 0x421857
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
cmp dword [ebx - 0xc], ecx
jne 0x4215a9
add ebx, 0xfffffff0
mov dword [esp + 0x290], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x421583
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0043d85c
mov esp, ebp
pop ebp
ret
lea esi, [ebx - 0x10]
push esi
call fcn.00401f90
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x290], 1
mov eax, dword [esi + 8]
mov ecx, 1
sub ecx, dword [esi + 0xc]
sub eax, 0x104
or eax, ecx
jge 0x4215ea
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401cc0
mov ebx, dword [esp + 0x14]
push 0x104
push edi
push ebx
call fcn.0043ec8e
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
add edi, 0xfffffff0
or esi, 0xffffffff
mov byte [esp + 0x290], 0
lea ecx, [edi + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421626
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
cmp byte [esp + 0x13], 0
je 0x421646
add ebx, 0xfffffff0
mov dword [esp + 0x290], esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jmp 0x421577
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x421857
cmp eax, dword [ebx - 8]
jg 0x421857
xor ecx, ecx
push 0x24c
mov dword [ebx - 0xc], eax
push ecx
lea edx, [esp + 0x38]
mov word [ebx + eax*2], cx
push edx
mov dword [esp + 0x38], ecx
call fcn.0043f900
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x4216b1
add ebx, 0xfffffff0
mov dword [esp + 0x290], esi
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x421577
lea esi, [esp + 0x14]
lea edi, [esp + 0x20]
call fcn.00420c30
push 0x46043c
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x29c], 2
call fcn.0040dce0
lea edx, [esp + 0x64]
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2a8], 3
call fcn.0040dce0
add esp, 0x18
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x294], 4
call fcn.0040f0a0
mov byte [esp + 0x290], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42172d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42177d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00401f90
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x290], 5
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4217ca
push 0x104
mov ecx, esi
call fcn.00401cc0
mov eax, dword [esi]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
add edi, 0xfffffff0
mov byte [esp + 0x290], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4217fd
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x421814
push ecx
push eax
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x421857
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x421857
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
add ebx, 0xfffffff0
mov dword [esp + 0x290], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42184d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 1
jmp 0x421585
push 0x80070057
call fcn.00401f60
int3