Function at 0x10083700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102b0f98
push 0x101fff80
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x102ca474]
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 - 0x448], esi
mov dword [ebp - 0x444], edi
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.10010566
mov ecx, esi
call fcn.10083a40
mov bl, al
mov byte [ebp - 0x435], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10083793
test bl, bl
jne 0x10083a16
cmp esi, 0x1a
jne 0x10083a16
mov ecx, edi
call fcn.10010566
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.101ffde0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.10005f42
add esp, 4
mov dword [ebp - 0x440], eax
mov ecx, edi
call fcn.10005e30
mov esi, eax
mov dword [ebp - 0x444], esi
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x440]
cmp eax, edx
ja 0x10083863
mov ecx, esi
mov dword [ebp - 0x434], esi
cmp edx, 8
jb 0x10083824
mov ecx, dword [esi]
mov dword [ebp - 0x434], ecx
mov dword [esi + 0x10], eax
push eax
lea eax, [ebp - 0x430]
push eax
push ecx
call fcn.10005f10
add esp, 0xc
mov dword [ebp - 0x444], 0
lea eax, [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x440]
mov eax, dword [ebp - 0x434]
lea eax, [eax + ecx*2]
push eax
call fcn.10005eff
jmp 0x100839ff
mov ecx, edi
call fcn.1000608d
cmp dword [ebp - 0x440], eax
ja 0x10083a34
mov ecx, edi
call fcn.1000608d
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x440]
or ecx, 7
mov dword [ebp - 0x450], ecx
cmp ecx, eax
ja 0x100838eb
mov ecx, edi
call fcn.10005e30
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x434], eax
mov edx, eax
shr edx, 1
mov eax, dword [ebp - 0x43c]
sub eax, edx
mov ecx, dword [ebp - 0x434]
cmp ecx, eax
jbe 0x100838c4
mov eax, dword [ebp - 0x43c]
jmp 0x100838e5
lea eax, [edx + ecx]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.10005ed6
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x43c], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100838fb
or ecx, 0xffffffff
jmp 0x10083903
cmp ecx, 0x1000
jb 0x1008392c
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e74f1
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x10083a39
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1008393d
test ecx, ecx
je 0x1008393b
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x1008393d
xor eax, eax
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x440]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x43c]
mov dword [esi + 0x14], ecx
mov esi, dword [ebp - 0x434]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.10005f29
add esp, 0xc
mov dword [ebp - 0x43c], 0
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x440]
lea eax, [esi + eax*2]
push eax
call fcn.10005eff
add esp, 8
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x100839d4
lea ecx, [ecx*2 + 2]
mov esi, dword [ebp - 0x444]
mov eax, dword [esi]
cmp ecx, 0x1000
jb 0x100839c3
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10083a39
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x434]
mov dword [esi], eax
jmp 0x100839ff
lea eax, [ebp - 0x434]
push eax
call fcn.10005f6e
add esp, 4
mov esi, eax
push dword [ebp - 0x444]
call fcn.10005f6e
add esp, 4
push eax
push 4
call fcn.10005b84
mov edx, dword [esi]
mov dword [eax], edx
add esp, 8
mov ecx, edi
call fcn.100086fc
movzx ebx, bl
mov ecx, 1
test al, al
cmove 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.101e7040
mov esp, ebp
pop ebp
ret
call fcn.1000604b
call fcn.102086be
int3