Function at 0x462fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6babad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x76a02c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4633f3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4633fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x463407
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
or eax, 0xffffffff
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jle 0x463224
nop
test ebx, ebx
js 0x463224
cmp ebx, dword [eax - 0xc]
jge 0x463224
lea eax, [eax + ebx*2]
push 0x25
push eax
call fcn.0053018b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x463224
mov eax, dword [ebp - 0x14]
sub ebx, dword [eax]
sar ebx, 1
js 0x463224
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jns 0x4630d8
lea ecx, [ebx + 1]
mov dword [ebp - 0x18], ecx
jmp 0x463215
mov eax, ebx
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00452850
mov byte [ebp - 4], 4
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x46314e
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x46313f
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x46313f
push dword [ebp - 0x24]
call fcn.00428ba0
add esp, 4
mov dword [ebp - 0x24], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x463137
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x46314e
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00429270
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46316d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x18], eax
je 0x463215
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jne 0x4631e5
lea edx, [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x40]
cmp dword [ebp - 0x24], edx
jb 0x4631a9
lea eax, [edx + ecx*4]
lea edx, [ebp - 0x10]
cmp edx, eax
mov edx, dword [ebp - 0x40]
jb 0x4633f3
mov eax, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4631b7
mov eax, 1
mov dword [ebp - 0x24], eax
jmp 0x4631c5
add eax, eax
mov dword [ebp - 0x24], eax
js 0x463215
cmp eax, 0x1fffffff
ja 0x463215
push 4
push eax
push edx
call fcn.0054136d
add esp, 0xc
test eax, eax
je 0x463215
mov ecx, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
jmp 0x4631e8
mov edx, dword [ebp - 0x40]
lea ecx, [edx + eax*4]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
test ecx, ecx
je 0x46320d
lea eax, [esi - 0x10]
push eax
call fcn.00428ba0
mov ecx, dword [ebp - 0x30]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x14]
inc ebx
mov eax, dword [ecx]
cmp ebx, dword [eax - 0xc]
jl 0x463090
mov ebx, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test ebx, ebx
jle 0x46333b
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
test ecx, ecx
js 0x4633e7
cmp ecx, ebx
jge 0x4633e7
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
call fcn.00462c90
test eax, eax
mov eax, dword [ebp - 0x18]
je 0x46327c
push dword [eax]
lea eax, [ebp - 0x10]
push str.___s__
push eax
call fcn.0041f510
add esp, 0xc
push dword [ebp - 0x20]
jmp 0x463317
mov eax, dword [eax]
push 0
push 0
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x4632a9
lea ecx, [ebp - 0x1c]
call fcn.00429210
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0
jmp 0x463323
js 0x463411
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x4632cf
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041f730
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
push edx
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [edi - 8]
push edi
call fcn.005418c8
add esp, 8
test eax, eax
js 0x463411
cmp eax, dword [edi - 8]
jg 0x463411
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x18]
push dword [eax]
lea eax, [ebp - 0x10]
push str.___s__
push eax
call fcn.0041f510
add esp, 0xc
push edi
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0045b100
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
inc ecx
add eax, 4
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
cmp ecx, ebx
jl 0x463240
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x463357
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463376
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463392
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4633d2
xor esi, esi
test ebx, ebx
jle 0x4633c9
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4633c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40]
inc esi
cmp esi, ebx
jl 0x4633a6
push ecx
call fcn.00534415
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00423cc0
push 0x80004005
call fcn.004222a0
push 0x80004005
call fcn.004222a0
push 0x80004005
call fcn.004222a0
push 0x80070057
call fcn.004222a0
int3