Function at 0x412cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4632e0
push 0x43d8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x46600c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x412d11
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov edx, edi
mov ecx, esi
call fcn.00412f40
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x412d54
test bl, bl
jne 0x412f15
cmp esi, 0x1a
jne 0x412f15
lea esi, [edi + 0x10]
mov dword [ebp - 0x43c], esi
mov dword [esi], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x412d7e
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call fcn.0043d260
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push 0x45a7f4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.0043f51e
add esp, 4
mov dword [ebp - 0x444], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x448], ecx
cmp eax, ecx
ja 0x412df9
cmp ecx, 8
jb 0x412dd8
mov edi, dword [edi]
mov dword [esi], eax
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x430]
push eax
push edi
call fcn.0043c760
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x412f01
cmp eax, 0x7ffffffe
ja 0x412f33
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x412e18
mov esi, 0x7ffffffe
jmp 0x412e36
mov edx, ecx
shr edx, 1
mov eax, 0x7ffffffe
sub eax, edx
cmp ecx, eax
jbe 0x412e2e
mov esi, 0x7ffffffe
jmp 0x412e36
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x412e48
or ecx, 0xffffffff
jmp 0x412e50
cmp ecx, 0x1000
jb 0x412e79
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b783
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x412f38
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x412e8a
test ecx, ecx
je 0x412e88
push ecx
call fcn.0043b783
add esp, 4
jmp 0x412e8a
xor eax, eax
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x43c]
mov dword [edx], ecx
mov dword [edi + 0x14], esi
lea esi, [ecx + ecx]
push esi
lea ecx, [ebp - 0x430]
push ecx
push eax
call fcn.0043cce0
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp - 0x438]
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x448]
cmp ecx, 8
jb 0x412eff
lea ecx, [ecx*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x412eef
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412f38
mov eax, edx
push ecx
push eax
call fcn.0043b7b3
add esp, 8
mov eax, dword [ebp - 0x438]
mov dword [edi], eax
movzx ebx, bl
mov ecx, 1
mov eax, dword [ebp - 0x43c]
cmp dword [eax], 0
cmovne ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
call fcn.00402330
call fcn.0043f744
int3