Function at 0x435db0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4cb19c
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x280]
mov eax, dword [esp + 0x284]
mov edi, edx
mov dword [esp + 0x3c], ecx
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 1
call fcn.00404c40
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
xor esi, esi
test ecx, ecx
jg 0x435e53
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004a0e91
add esp, 0x268
ret
mov edi, edx
test esi, esi
jl 0x436223
cmp esi, ecx
jg 0x436223
movzx edx, word [eax + esi*2]
movzx ebp, dx
cmp bp, 0x25
jne 0x4361d3
lea ebp, [esi + 1]
test ebp, ebp
jl 0x435e99
cmp ebp, ecx
jge 0x435e99
lea edx, [eax + ebp*2]
push 0x25
push edx
call fcn.004a2377
add esp, 8
test eax, eax
je 0x435e99
sub eax, dword [edi]
sar eax, 1
test eax, eax
jge 0x435efd
mov eax, dword [edi]
cmp esi, dword [eax - 0xc]
jg 0x436223
movzx eax, word [eax + esi*2]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
lea esi, [edi + 1]
sub edx, esi
or ecx, edx
jge 0x435ecd
push esi
mov ecx, ebx
call fcn.00404aa0
mov eax, dword [ebx]
mov cx, word [esp + 0x18]
mov word [eax + edi*2], cx
test esi, esi
jl 0x436223
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x436223
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
xor eax, eax
mov word [edx + esi*2], ax
mov esi, ebp
jmp 0x4361bd
mov ebx, eax
sub ebx, esi
lea ecx, [ebx - 1]
push ecx
push ebp
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.00404290
mov ebp, eax
mov dword [esp + 0x278], 0
mov ecx, dword [ebp]
mov edi, dword [ecx - 0xc]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or eax, ecx
jge 0x435f3e
push edi
mov ecx, ebp
call fcn.00404aa0
mov eax, dword [ebp]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.004a2562
add esp, 8
test edi, edi
jl 0x436223
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x436223
mov dword [eax - 0xc], edi
mov edx, dword [ebp]
xor eax, eax
mov word [edx + edi*2], ax
mov ebp, dword [ebp]
sub ebp, 0x10
push ebp
call fcn.00404cb0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x278], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435fac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call fcn.00438c50
mov ebp, dword [eax]
mov ecx, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov edi, dword [edi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
test ebp, ebp
je 0x435fdb
cmp ebp, edi
je 0x435fe0
call fcn.004a0da7
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x28], edx
je 0x43602b
test ebp, ebp
jne 0x436026
call fcn.004a0da7
mov eax, dword [esp + 0x28]
cmp eax, dword [ebp + 0x18]
jne 0x436001
call fcn.004a0da7
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.004057c0
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
lea esi, [esi + eax + 2]
jmp 0x43618e
mov ebp, dword [ebp]
jmp 0x435ff3
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
call fcn.00438c50
mov ebp, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], eax
test ebp, ebp
je 0x43605a
cmp ebp, edi
je 0x43605f
call fcn.004a0da7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x28], ecx
je 0x4360aa
test ebp, ebp
jne 0x4360a5
call fcn.004a0da7
mov edx, dword [esp + 0x28]
cmp edx, dword [ebp + 0x18]
jne 0x436080
call fcn.004a0da7
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.004057c0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
lea esi, [esi + eax + 2]
jmp 0x43618e
mov ebp, dword [ebp]
jmp 0x436072
mov ecx, dword [esp + 0x20]
inc ebx
push ebx
push esi
lea edx, [esp + 0x38]
push edx
call fcn.00404290
mov ecx, eax
mov byte [esp + 0x278], 3
call fcn.00404fb0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404cb0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x48], edi
mov byte [esp + 0x278], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436107
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [esp + 0x68]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
ja 0x436151
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436126
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x68]
push edx
call fcn.004057c0
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
lea esi, [esi + eax + 2]
jmp 0x43616a
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x34], 0
call fcn.004057c0
add esi, dword [edi - 0xc]
add edi, 0xfffffff0
mov byte [esp + 0x278], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43618e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x278], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4361b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
cmp esi, ecx
jl 0x435e51
jmp 0x435e25
cmp esi, ecx
jg 0x436223
mov eax, dword [ebx]
mov ebp, dword [eax - 0xc]
movzx ecx, dx
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x18], ecx
jge 0x4361ff
push edi
mov ecx, ebx
call fcn.00404aa0
mov ecx, dword [ebx]
mov dx, word [esp + 0x18]
mov word [ecx + ebp*2], dx
test edi, edi
jl 0x436223
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x436223
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax + edi*2], cx
inc esi
jmp 0x4361bd
push 0x80070057
call fcn.00404d40
int3