Function at 0x414330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd11
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 2
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414380
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push ecx
call ebx
mov esi, eax
test esi, esi
jle 0x414401
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4143c6
push esi
lea ecx, [ebp - 0x18]
call fcn.00403620
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
push esi
push edi
push edx
call ebx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00551122
add esp, 8
test eax, eax
jl 0x41449c
cmp eax, dword [edi - 8]
jg 0x41449c
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [ebp - 0x18]
mov word [edi + eax*2], cx
push edx
lea ecx, [ebp + 0x10]
call fcn.004037d0
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
add esp, 4
push eax
mov byte [ebp - 4], 3
call fcn.004146b0
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4144a6
add eax, 0xfffffff0
push eax
call fcn.00403760
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414490
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea eax, [edi - 0x10]
jmp 0x414638
push 0x80070057
call fcn.004038e0
lea ecx, [ebp - 0x48]
call fcn.0045f386
mov byte [ebp - 4], 6
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4144cc
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 0x10]
push ecx
mov bl, 7
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004037d0
lea esi, [ebp - 0x1c]
call fcn.00414b80
push 3
push 0x5b4888
mov ecx, esi
call fcn.00405900
mov edi, dword [ebp - 0x1c]
push 0
push edi
lea ecx, [ebp - 0x48]
call fcn.0045f41e
test eax, eax
jmp 0x4145bb
lea ecx, [ebp - 0x48]
call fcn.0045f068
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], eax
call fcn.0045f347
test eax, eax
jne 0x4145b7
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x48]
call eax
test eax, eax
je 0x4145b7
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push ecx
lea ecx, [ebp - 0x48]
call fcn.0045f61d
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
lea edx, [ebp - 0x24]
add esp, 4
mov dword [esi], eax
push edx
mov byte [ebp - 4], bl
call fcn.00414330
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004037d0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
jne 0x4145c1
cmp dword [ebp - 0x28], 0
jne 0x414517
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403760
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [ebp - 0x20], 1
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4145ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0045f3af
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41462e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414651
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414674
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret