Function at 0x403b63
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x405e3d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
and dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x402368
and dword [esp + 0x60], 0
lea ecx, [esp + 0x10]
call fcn.00404a4d
lea eax, [esp + 0x14]
push eax
push 1
push 0xe
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push 8
pop ebx
test eax, eax
je 0x403d14
push ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.00404450
mov byte [esp + 0x60], 1
mov edi, 0x104
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x403bfd
lea eax, [esp + 0x20]
cmp dword [esi + 0x14], ebx
jb 0x403c06
mov ecx, dword [esi]
jmp 0x403c08
mov ecx, esi
push dword [esp + 0x30]
push eax
push ecx
push dword [esp + 0x20]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
setne al
test al, al
jne 0x403c6b
cmp edi, 0x410
jae 0x403c67
add edi, edi
lea ecx, [esp + 0x20]
push edi
call fcn.0040469a
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x403c43
lea ecx, [esp + 0x20]
cmp dword [esi + 0x14], ebx
jb 0x403c4c
mov eax, dword [esi]
jmp 0x403c4e
mov eax, esi
push dword [esp + 0x30]
push ecx
push eax
push dword [esp + 0x20]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
setne al
test al, al
je 0x403c21
test al, al
je 0x403c8e
and dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x403c7e
lea ecx, [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, edi
push eax
call fcn.00402a25
test eax, eax
jns 0x403ca3
push 0x401e9c
mov ecx, esi
call fcn.0040457a
lea ecx, [esp + 0x20]
jmp 0x403db0
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.0040469a
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004044a5
push 0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0
call fcn.004049dc
push 0x25
pop eax
push ecx
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.00404849
cmp eax, 0xffffffff
je 0x403db9
push ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.00404450
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x403d0b
lea eax, [esp + 0x38]
cmp dword [esi + 0x14], ebx
jb 0x403d34
mov ecx, dword [esi]
jmp 0x403d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 4]
cmp eax, 0x3f0
sete al
test al, al
jne 0x403cce
push ecx
mov edx, 0x657
call fcn.004038cf
mov ecx, esi
push dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x403d51
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x663
jmp 0x403d2f
cmp eax, dword [esp + 0x48]
jb 0x403d95
push eax
lea ecx, [esp + 0x3c]
call fcn.0040469a
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x403d6f
lea ecx, [esp + 0x38]
cmp dword [esi + 0x14], ebx
jb 0x403d78
mov eax, dword [esi]
jmp 0x403d7a
mov eax, esi
push dword [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x403d95
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x66a
jmp 0x403d2f
dec eax
lea ecx, [esp + 0x38]
push eax
call fcn.0040469a
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004044a5
lea ecx, [esp + 0x38]
push 0
push 1
call fcn.004049dc
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x402368
call fcn.00404a4d
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004055c0
mov esp, ebp
pop ebp
ret