Function at 0x47aff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov ebx, edx
mov dword [ebp - 0x2c], ecx
push dword [ebp + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
mov eax, 0xfc1
sub eax, edi
mov dword [ebp - 0x64], eax
test eax, eax
jle 0x47b46c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, eax
sete cl
lea edx, [ebx - 7]
cmp edx, 0xfffffffe
setb dl
mov dword [ebp - 0x4c], 0
or dl, cl
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov ecx, 0
jne 0x47b0af
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push eax
push str._s:_u_
push ecx
call fcn.004a34d0
add esp, 0x10
test byte [ebp - 0x28], 1
je 0x47b095
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov dword [ebp - 0x24], 0
test byte [ebp - 0x28], 1
je 0x47b095
push dword [ebp - 0x20]
call fcn.004203b0
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x28], xmm0
movzx ecx, byte [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov esi, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], esp
mov eax, 0xfc2
sub eax, edi
mov dword [ebp - 0x54], eax
mov eax, 0xfc5
sub eax, edi
and eax, 0xfffffffc
call fcn.004a1d40
mov dword [ebp - 0x1c], esp
push 0xa
push dword [ebp + 0x14]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x47b2cf
mov ebx, eax
mov ecx, esi
mov eax, ecx
shr al, 1
test cl, 1
movzx eax, al
mov esi, dword [ebp - 0x4c]
cmove esi, eax
inc esi
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x27]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
lea ecx, [eax + 2]
cmp eax, 5
mov eax, 7
mov dword [ebp - 0x60], ecx
cmovb eax, ecx
mov dword [ebp - 0x6c], eax
xor edi, edi
jmp 0x47b16c
push ebx
push edi
push eax
push str._s_.s
push edx
push ecx
call fcn.0047c000
add esp, 0x18
mov edi, eax
mov ebx, dword [ebp - 0x68]
test eax, eax
mov eax, 0
cmovle edi, eax
add edi, esi
inc ebx
push 0xa
mov dword [ebp - 0x14], ebx
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov ebx, eax
test eax, eax
je 0x47b246
mov esi, 0
mov eax, 0x581f29
test edi, edi
mov ecx, dword [ebp - 0x14]
je 0x47b201
mov eax, dword [ebp - 0x4c]
add eax, ebx
add eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0x64]
jle 0x47b1f0
mov eax, 0x7fffffff
cmp dword [ebp - 0x58], 3
ja 0x47b1a4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x581f38]
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004a7b70
add esp, 4
xor esi, esi
mov eax, 0x581f29
mov ecx, dword [ebp - 0x14]
jmp 0x47b201
test edi, edi
mov eax, 0x581f29
mov edx, 0x581de0
cmovg eax, edx
mov esi, edi
mov dword [ebp - 0x68], ebx
mov edi, ebx
sub edi, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, esi
mov edx, dword [ebp - 0x54]
sub edx, esi
cmp byte [ebp - 0xd], 0
jne 0x47b130
mov ebx, ecx
test byte [ebp - 0x28], 1
lea ecx, [ebp - 0x27]
je 0x47b22c
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push ecx
push eax
push str._s_s_.s
push edx
push ebx
call fcn.0047c000
add esp, 0x1c
jmp 0x47b142
test edi, edi
mov ecx, dword [ebp - 0x14]
je 0x47b33d
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x4c]
add ecx, edi
add ecx, eax
cmp ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x50]
jle 0x47b39a
mov eax, 0x7fffffff
cmp dword [ebp - 0x58], 3
mov esi, dword [ebp - 0x2c]
ja 0x47b282
mov eax, dword [esi*4 + 0x581f38]
cmp ebx, 5
mov ecx, 7
cmovb ecx, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004a7b70
add esp, 4
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
jne 0x47b2e1
jmp 0x47b34c
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x2c]
cmp byte [ebp - 0xd], 0
je 0x47b34c
mov edi, ecx
lea ecx, [esi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x47b2f7
mov eax, dword [esi*4 + 0x581f38]
lea ecx, [ebx + 2]
cmp ebx, 5
mov edx, 7
cmovb edx, ecx
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x48]
push eax
call fcn.004a7b70
add esp, 4
mov edi, dword [ebp - 0x18]
jmp 0x47b451
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x50]
cmp byte [ebp - 0xd], 0
jne 0x47b2e1
test byte [ebp - 0x28], 1
je 0x47b357
mov eax, dword [ebp - 0x20]
jmp 0x47b35a
lea eax, [ebp - 0x27]
mov edx, dword [ebp - 0x54]
push ecx
push eax
push str._s_s
push edx
push dword [ebp - 0x1c]
call fcn.0047c000
add esp, 0x14
lea ecx, [esi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x47b384
mov eax, dword [esi*4 + 0x581f38]
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 7
jmp 0x47b42b
test edi, edi
mov eax, 0x581de0
mov ecx, 0x581f29
cmovg ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, edi
mov edx, dword [ebp - 0x54]
sub edx, edi
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x2c]
je 0x47b3d6
push dword [ebp - 0x14]
push 0xffffffffffffffff
push ecx
push str._s_.s
push edx
push eax
call fcn.0047c000
add esp, 0x18
mov edi, dword [ebp - 0x18]
jmp 0x47b400
test byte [ebp - 0x28], 1
mov edi, dword [ebp - 0x18]
je 0x47b3e8
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [ebp - 0x5c]
push ecx
push str._s_s_.s
push edx
push eax
call fcn.0047c000
add esp, 0x1c
mov eax, 0x7fffffff
cmp dword [ebp - 0x58], 3
ja 0x47b412
mov eax, dword [esi*4 + 0x581f38]
cmp ebx, 5
mov ecx, 7
cmovb ecx, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004a7b70
add esp, 4
mov esp, edi
test byte [ebp - 0x28], 1
je 0x47b464
push dword [ebp - 0x20]
call fcn.004203b0
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop word cs:[eax + eax]