Function at 0x1003727b
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10059ac3
call fcn.10058864
sub esp, 0x58
push ebx
push esi
xor ebx, ebx
mov byte [ebp - 0x18], dl
push edi
test dl, dl
je 0x10037471
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x24], ebx
call fcn.10035e6a
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.10035e6a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x48]
sar ecx, 2
sar eax, 2
mov dword [ebp - 0x1c], ebx
push 1
cmp eax, ecx
jbe 0x10037316
push 0x4af5
lea eax, [ebp - 0x48]
mov ecx, 0x399d
push eax
push 1
lea edx, [ebp - 0x1c]
call fcn.1003621a
mov esi, dword [ebp - 0x38]
add esp, 0x10
sub esi, dword [ebp - 0x3c]
sar esi, 2
mov dword [ebp - 0x20], esi
cmp esi, dword [ebp - 0x1c]
jge 0x10037367
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.100397c8
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x100372ff
jmp 0x10037364
push 0x6e1c
push 0x5742
lea eax, [ebp - 0x3c]
mov dl, 1
push eax
lea eax, [ebp - 0x1c]
mov cl, dl
push eax
push 0x2f50
push 0x1cc9
call fcn.10036a5e
mov esi, dword [ebp - 0x44]
add esp, 0x1c
sub esi, dword [ebp - 0x48]
sar esi, 2
mov dword [ebp - 0x20], esi
cmp esi, dword [ebp - 0x1c]
jge 0x10037367
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.100397c8
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x1003734f
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], 0x726
cmp dword [ebp - 0x2c], 0xad2
jle 0x100373d1
mov esi, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], 0x4b10
mov edi, ebx
mov eax, esi
lea ecx, [ebp - 0x60]
xor eax, edi
cdq
push edx
push eax
call fcn.10001ade
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100373a1
mov eax, dword [eax]
push eax
call fcn.1004041f
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.10014649
inc edi
cmp edi, 0x1854
jl 0x10037388
dec esi
dec dword [ebp - 0x20]
jne 0x10037386
mov esi, dword [ebp - 0x28]
inc esi
mov dword [ebp - 0x28], esi
cmp esi, 0x8052
jl 0x1003737c
mov edx, ebx
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x1c], edx
jle 0x10037443
cmp dword [ebp - 0x24], 0
jne 0x10037443
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x3c]
cmp ecx, dword [eax + edx*4]
jle 0x1003740d
push ecx
push 0x79fb
push 0x7cf4
push ecx
push 1
lea edx, [ebp - 0x24]
mov ecx, 0x4240
call fcn.10036265
add esp, 0x14
push 0x7ad
push 1
push 0x4f3f
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x696e
lea eax, [ebp - 0x24]
push ebx
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x20]
call fcn.10037b58
mov edx, dword [ebp - 0x20]
add esp, 0x20
inc edx
mov dword [ebp - 0x20], edx
cmp edx, dword [ebp - 0x1c]
jl 0x100373db
cmp dword [ebp - 0x2c], 0x42f
jge 0x10037457
push str.evsvwufuj_khsgtr_jed_tbmlqpuj_mofjncni_xdnbpmrqj_ifbxw_oflss_vhtylqur_gujry
call fcn.1004041f
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
lea ecx, [ebp - 0x3c]
call fcn.10039b5a
lea ecx, [ebp - 0x48]
call fcn.10039b5a
jmp 0x10037486
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x10037486
push 0xfd6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret