Function at 0x4129c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4632a8
push 0x43d2d0
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 0x412a21
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov edx, edi
mov ecx, esi
call fcn.00412c50
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x412a64
test bl, bl
jne 0x412c25
cmp esi, 0x1a
jne 0x412c25
lea esi, [edi + 0x10]
mov dword [ebp - 0x43c], esi
mov dword [esi], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x412a8e
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call fcn.0043cc90
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push 0x45a860
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.0043ef4e
add esp, 4
mov dword [ebp - 0x444], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x448], ecx
cmp eax, ecx
ja 0x412b09
cmp ecx, 8
jb 0x412ae8
mov edi, dword [edi]
mov dword [esi], eax
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x430]
push eax
push edi
call fcn.0043c190
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x412c11
cmp eax, 0x7ffffffe
ja 0x412c43
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x412b28
mov esi, 0x7ffffffe
jmp 0x412b46
mov edx, ecx
shr edx, 1
mov eax, 0x7ffffffe
sub eax, edx
cmp ecx, eax
jbe 0x412b3e
mov esi, 0x7ffffffe
jmp 0x412b46
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x412b58
or ecx, 0xffffffff
jmp 0x412b60
cmp ecx, 0x1000
jb 0x412b89
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b1a7
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x412c48
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x412b9a
test ecx, ecx
je 0x412b98
push ecx
call fcn.0043b1a7
add esp, 4
jmp 0x412b9a
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.0043c710
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 0x412c0f
lea ecx, [ecx*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x412bff
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c48
mov eax, edx
push ecx
push eax
call fcn.0043b1d7
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.0043af96
mov esp, ebp
pop ebp
ret
call fcn.00402330
call fcn.0043f174
int3