Function at 0x4639d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ddad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0xc]
call fcn.004037a0
xor bl, bl
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x463c8d
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x463c8d
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
xor ecx, ecx
mov eax, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax]
cmp dword [eax - 0xc], ecx
jle 0x463c15
mov esi, dword [ebp + 0xc]
test ecx, ecx
js 0x463c97
cmp ecx, dword [eax - 0xc]
jg 0x463c97
movzx eax, word [eax + ecx*2]
mov ecx, eax
sub eax, 0x25
je 0x463b05
sub eax, 0x36
je 0x463af6
sub eax, 2
je 0x463ab9
push ecx
test bl, bl
je 0x463aad
lea ecx, [ebp - 0x10]
call fcn.0040bd00
jmp 0x463bfd
mov ecx, esi
call fcn.0040bd00
jmp 0x463bfd
lea eax, [ebp - 0x14]
xor bl, bl
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call fcn.00451770
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jg 0x463c85
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x463c85
push ecx
push eax
mov ecx, esi
call fcn.00402660
jmp 0x463bfd
lea ecx, [ebp - 0x10]
mov bl, 1
call fcn.004037a0
jmp 0x463bfd
test bl, bl
je 0x463bf3
push 0x208
mov esi, 0x104
call fcn.004d4097
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x463b82
cmp eax, esi
jb 0x463ba2
add esi, esi
mov byte [ebp - 4], 3
push 2
push edi
call fcn.004d4054
mov ecx, 2
mov dword [ebp - 0x18], 0
mov eax, esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004d4097
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x463b37
mov byte [ebp - 4], 3
push 2
push edi
call fcn.004d4054
add esp, 8
mov dword [ebp - 0x18], 0
mov ebx, 0xcb
or edi, 0xffffffff
jmp 0x463c17
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x463ba7
sub eax, edx
lea ecx, [ebp - 0x14]
sar eax, 1
push eax
push edi
call fcn.00403870
mov byte [ebp - 4], 3
push 2
push edi
call fcn.004d4054
mov eax, dword [ebp - 0x14]
add esp, 8
xor ebx, ebx
mov dword [ebp - 0x18], 0
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x463b9d
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00402660
mov esi, dword [ebp + 0xc]
xor bl, bl
jmp 0x463bfd
lea ecx, [ebp - 0x10]
call fcn.004037a0
mov bl, 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax]
cmp ecx, dword [eax - 0xc]
jl 0x463a75
or edi, 0xffffffff
xor ebx, ebx
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x463c44
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x463c6f
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0x24]
or edi, 0xffffffff
jmp 0x463c17
push 0x80004005
call fcn.004027d0
push 0x80070057
call fcn.004027d0
int3