Function at 0x10040a55
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10040a77
push 0x184a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x10040c86
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10040ad4
mov dword [ebp - 0x10], 1
jmp 0x10040ad8
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10040af5
mov dword [ebp - 0x14], 1
jmp 0x10040af9
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jg 0x10040b0a
mov dword [ebp - 0x18], 1
jmp 0x10040b0e
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
je 0x10040b21
mov dword [ebp - 0x64], 1
jmp 0x10040b25
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10040b44
mov eax, 0xea28c7ff
test eax, eax
jne 0x10040b44
and dword [ebp - 0x1c], 0
jmp 0x10040b4b
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jl 0x10040b5e
mov dword [ebp - 0x20], 1
jmp 0x10040b62
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x4015fb26
jle 0x10040b74
mov dword [ebp - 0x68], 1
jmp 0x10040b78
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, 0xce35a12a
test eax, eax
je 0x10040b9a
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10040b9a
mov dword [ebp - 0x24], 1
jmp 0x10040b9e
and dword [ebp - 0x24], 0
imul eax, dword [ebp - 0x24], 0xb245
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jge 0x10040bba
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x10040bba
and dword [ebp - 0x28], 0
jmp 0x10040bc1
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0xf944
jl 0x10040bd3
mov dword [ebp - 0x2c], 1
jmp 0x10040bd7
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jle 0x10040bea
mov dword [ebp - 0x30], 1
jmp 0x10040bee
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
jbe 0x10040c03
mov eax, 0xb864
test eax, eax
jne 0x10040c03
and dword [ebp - 0x34], 0
jmp 0x10040c0a
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0x5f0e77da
jge 0x10040c1c
mov dword [ebp - 0x3c], 1
jmp 0x10040c20
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jl 0x10040c3d
mov dword [ebp - 0x40], 1
jmp 0x10040c41
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
sub eax, 6
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jge 0x10040c63
mov dword [ebp - 0x44], 1
jmp 0x10040c67
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
je 0x10040c7a
mov dword [ebp - 0x48], 1
jmp 0x10040c7e
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret