Function at 0x47ad60
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 0x47b1dc
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 0x47ae1f
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push eax
push str._s:_u_
push ecx
call fcn.004a31b0
add esp, 0x10
test byte [ebp - 0x28], 1
je 0x47ae05
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov dword [ebp - 0x24], 0
test byte [ebp - 0x28], 1
je 0x47ae05
push dword [ebp - 0x20]
call fcn.00420e70
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.004a19a0
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 0x47b03f
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 0x47aedc
push ebx
push edi
push eax
push str._s_.s
push edx
push ecx
call fcn.0047bd70
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 0x47afb6
mov esi, 0
mov eax, 0x589e56
test edi, edi
mov ecx, dword [ebp - 0x14]
je 0x47af71
mov eax, dword [ebp - 0x4c]
add eax, ebx
add eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0x64]
jle 0x47af60
mov eax, 0x7fffffff
cmp dword [ebp - 0x58], 3
ja 0x47af14
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x589e64]
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.004a7840
add esp, 4
xor esi, esi
mov eax, 0x589e56
mov ecx, dword [ebp - 0x14]
jmp 0x47af71
test edi, edi
mov eax, 0x589e56
mov edx, 0x589e44
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 0x47aea0
mov ebx, ecx
test byte [ebp - 0x28], 1
lea ecx, [ebp - 0x27]
je 0x47af9c
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.0047bd70
add esp, 0x1c
jmp 0x47aeb2
test edi, edi
mov ecx, dword [ebp - 0x14]
je 0x47b0ad
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 0x47b10a
mov eax, 0x7fffffff
cmp dword [ebp - 0x58], 3
mov esi, dword [ebp - 0x2c]
ja 0x47aff2
mov eax, dword [esi*4 + 0x589e64]
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.004a7840
add esp, 4
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
jne 0x47b051
jmp 0x47b0bc
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 0x47b0bc
mov edi, ecx
lea ecx, [esi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x47b067
mov eax, dword [esi*4 + 0x589e64]
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.004a7840
add esp, 4
mov edi, dword [ebp - 0x18]
jmp 0x47b1c1
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x50]
cmp byte [ebp - 0xd], 0
jne 0x47b051
test byte [ebp - 0x28], 1
je 0x47b0c7
mov eax, dword [ebp - 0x20]
jmp 0x47b0ca
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.0047bd70
add esp, 0x14
lea ecx, [esi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x47b0f4
mov eax, dword [esi*4 + 0x589e64]
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 7
jmp 0x47b19b
test edi, edi
mov eax, 0x589e44
mov ecx, 0x589e56
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 0x47b146
push dword [ebp - 0x14]
push 0xffffffffffffffff
push ecx
push str._s_.s
push edx
push eax
call fcn.0047bd70
add esp, 0x18
mov edi, dword [ebp - 0x18]
jmp 0x47b170
test byte [ebp - 0x28], 1
mov edi, dword [ebp - 0x18]
je 0x47b158
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.0047bd70
add esp, 0x1c
mov eax, 0x7fffffff
cmp dword [ebp - 0x58], 3
ja 0x47b182
mov eax, dword [esi*4 + 0x589e64]
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.004a7840
add esp, 4
mov esp, edi
test byte [ebp - 0x28], 1
je 0x47b1d4
push dword [ebp - 0x20]
call fcn.00420e70
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]