Function at 0x10031ad0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2c93
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x100cf360]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0
cmp byte [0x100e21d8], 0
je 0x100321ae
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x15c], edx
push 0x98
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.1002bcc0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov dword [ebp - 0x244], eax
add esp, 4
mov dword [ebp - 0x240], str._H:_M:_S
mov eax, str._H:_M:_S
mov dword [ebp - 0x23c], str._H:_M:_S
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x10031ba0
lea edx, [ebp - 0x244]
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x230]
call fcn.100365d0
mov eax, dword [0x101ccc5c]
movss xmm0, dword [0x100c440c]
push ecx
divss xmm0, dword [eax + 0x20]
movss dword [ebp - 0x234], xmm0
fld dword [ebp - 0x234]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
fstp dword [ebp - 0x234]
cvttss2si eax, dword [ebp - 0x234]
add esp, 4
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
lea ecx, [ebp - 0x198]
push 0xb
push str.May_19_2024
xorps xmm0, xmm0
mov dword [ebp - 0x13c], eax
movups xmmword [ebp - 0x198], xmm0
call fcn.10026a40
push 0x104
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 1
push eax
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xorps xmm0, xmm0
mov dword [ebp - 0x170], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x16c], 0
movups xmmword [ebp - 0x180], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031c70
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x180]
call fcn.10026a40
mov byte [ebp - 4], 2
mov ecx, dword [0x101ccc00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
test eax, eax
je 0x10031ccc
mov ecx, dword [0x101ccc00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, eax
call edx
push str.loopback
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
mov ecx, dword [0x101ccc00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
test eax, eax
je 0x10031cf9
mov ecx, dword [0x101ccc00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, eax
call edx
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0
push str.nor_cs
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x154], xmm0
call fcn.10026a40
push 0x98
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb8], 0x100bdea8
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x234], 5
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb8], 0x100bdea4
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xbc], eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xb4], 0x100bdde4
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 4
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x264], eax
mov ecx, 2
mov dword [ebp - 0x260], 2
lea eax, [ebp - 0x254]
mov dword [eax - 8], 0
lea eax, [eax + 0xc]
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
sub ecx, 1
jne 0x10031df2
push dword [ebp - 0x260]
lea eax, [ebp - 0x154]
mov dword [ebp - 0x240], 0x100371e0
push dword [ebp - 0x264]
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0xb8]
movq xmm0, qword [ebp - 0x244]
lea eax, [ebp - 0x13c]
movq qword [ebp - 0x25c], xmm0
mov edx, str._s___stick
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0x10037450
movq xmm0, qword [ebp - 0x244]
mov dword [ebp - 0x254], fcn.1002c420
movq qword [ebp - 0x250], xmm0
mov dword [ebp - 0x248], 0x10037470
call fcn.10029c30
add esp, 8
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0xb4]
push eax
call fcn.1002bf00
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb8], 0x100bdea4
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xbc], eax
lea ecx, [ebp - 0xb4]
call fcn.10025d20
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x138]
mov ecx, dword [ebp - 0x124]
lea esi, [ebp - 0x138]
mov edi, dword [ebp - 0x138]
cmp ecx, 0x10
cmovae eax, edi
add eax, dword [ebp - 0x128]
cmp ecx, 0x10
mov dword [ebp - 0x234], eax
cmovae esi, edi
cmp esi, eax
je 0x10031f45
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movsx eax, byte [esi]
push eax
call edi
mov byte [esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x234]
jne 0x10031f25
mov ecx, dword [ebp - 0x124]
mov edi, dword [ebp - 0x138]
push dword [ebp - 0x128]
cmp ecx, 0x10
lea edx, [ebp - 0x138]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmovae edx, edi
call fcn.1002c220
add esp, 4
mov ecx, eax
push 0x10036830
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x138]
mov ecx, 0x101d1550
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.10098c60
mov eax, dword [ebp - 0x238]
mov esi, dword [ebp - 0x168]
mov ecx, dword [0x101ccc0c]
mov edi, dword [ebp - 0x164]
mov eax, dword [eax + 0x708]
add edi, 5
sub eax, esi
sub eax, 0x19
mov dword [ebp - 0x234], eax
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [0x101ccc0c]
add esi, 0x19
mov edx, dword [ebp - 0x234]
add esi, edx
push 1
push 0
mov eax, dword [ecx]
push 0
push edi
push esi
mov eax, dword [eax + 0x1ec]
push 0
push edx
call eax
mov ecx, dword [0x101ccc0c]
push 0xe1000000
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [0x101ccc0c]
push 1
push 0xe1
push 0
mov eax, dword [ecx]
push edi
push esi
push 0
push dword [ebp - 0x234]
mov eax, dword [eax + 0x1ec]
call eax
mov eax, dword [ebp - 0x238]
push 1
mov edx, dword [eax + 0x708]
lea eax, [ebp - 0x138]
push eax
push ecx
mov eax, esp
sub edx, 3
push 2
push edx
mov ecx, 0x101d1550
mov dword [eax], 0xe1e1e1e1
call fcn.10098880
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x10
jb 0x10032082
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032078
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032154
push ecx
push edx
call fcn.100af9f8
add esp, 8
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp ecx, 0x10
jb 0x100320d7
mov edx, dword [ebp - 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100320cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032154
push ecx
push edx
call fcn.100af9f8
add esp, 8
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0xf
mov byte [ebp - 0x154], 0
cmp ecx, 0x10
jb 0x10032128
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003211e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032154
push ecx
push edx
call fcn.100af9f8
add esp, 8
mov ecx, dword [ebp - 0x184]
cmp ecx, 0x10
jb 0x10032164
mov edx, dword [ebp - 0x198]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003215a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003215a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100af9f8
add esp, 8
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x230], 0x100bdea4
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x234], eax
lea ecx, [ebp - 0x22c]
call fcn.10025d20
lea ecx, [ebp - 0x228]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1e0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100af496
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret