Function at 0x10037f9a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100599ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100381c3
lea eax, [ebp + 0x20]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x1003818b
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
push 2
pop ecx
div ecx
test edx, edx
jne 0x100380a7
lea eax, [ebp - 0x108]
push eax
call fcn.1002d8c9
pop ecx
mov esi, eax
lea edi, [ebp - 0xfc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0xfc]
lea edi, [ebp - 0xf0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call fcn.1002ee95
mov dword [ebp - 0x7c], eax
push 0x13d9
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0xb4]
push 1
push 0x7b35
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x34]
push 1
call fcn.10037ced
add esp, 0x20
mov dword [ebp - 0x4c], 0x7eac
mov dword [ebp - 0x54], str.wnb_sndruyq_cfyxu_kptlg_dghicq_akijwxj_lhvjwubh_ohv_okiean_jiywvvpsj_ppmxkg_yeje
cmp dword [ebp - 0x4c], 0x8173
jle 0x1003814d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and dword [ebp - 0x20], 0
jmp 0x100380db
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xea3
jge 0x1003814d
and dword [ebp - 0x24], 0
jmp 0x100380f1
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6dc4
jge 0x1003814b
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x120]
call fcn.10001a95
pop ecx
pop ecx
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
call fcn.10004684
push eax
call fcn.1003fffd
pop ecx
lea ecx, [ebp - 0x120]
call fcn.1000467a
jmp 0x100380ea
jmp 0x100380d4
and dword [ebp - 4], 0
cmp dword [ebp - 0x4c], 0x7d55
jge 0x10038163
push dword [ebp - 0x54]
call fcn.1003fffd
pop ecx
jmp 0x1003817f
or dword [ebp - 4], 0xffffffff
jmp 0x10038189
jmp 0x100381be
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
movzx eax, byte [eax]
test eax, eax
je 0x100381be
push 1
push 0
push 1
call fcn.100347a0
add esp, 0xc
jmp 0x10038436
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x1003826b
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x10038249
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 1
jge 0x10038266
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.1000496d
mov dword [eax], 0x8573
jmp 0x1003823e
jmp 0x10038436
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100382de
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jg 0x10038436
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
cmp dword [eax], 0
jne 0x100383ea
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x635290ce
jne 0x1003831f
mov dword [ebp - 0x44], 1
jmp 0x10038323
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x44]
sub esi, dword [eax]
push 3
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
cmp esi, dword [eax]
jl 0x10038342
mov dword [ebp - 0x3c], 1
jmp 0x10038346
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax]
je 0x10038368
mov dword [ebp - 0x2c], 1
jmp 0x1003836c
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xfffe
je 0x1003837e
mov dword [ebp - 0x30], 1
jmp 0x10038382
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xffffffff
je 0x10038391
mov dword [ebp - 0x38], 1
jmp 0x10038395
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
jbe 0x100383a7
mov dword [ebp - 0xb0], 1
jmp 0x100383ae
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0xe4], eax
push 3
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
mov esi, eax
push 0
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
mov ecx, dword [esi]
cmp ecx, dword [eax]
jl 0x1003840a
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
je 0x1003840a
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.1000496d
cmp dword [eax], 0
je 0x1003840a
xor eax, eax
inc eax
je 0x1003840a
mov dword [ebp - 0x48], 1
jmp 0x1003840e
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
dec eax
cmp eax, 0xf9acf257
jae 0x10038422
mov dword [ebp - 0x50], 1
jmp 0x10038426
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
jmp 0x100382d3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret