Function at 0x417fa0
Capabilities:
Query environment variable

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], 0
lea edx, [esp + 0x28]
mov dword [esp + 0x20], edx
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x44]
inc esi
mov dword [esp + 0x24], esi
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [esi]
mov ecx, 0xffffffff
test al, al
je 0x418230
cmp al, 0x5b
je 0x418555
cmp al, 0x3f
je 0x418548
cmp al, 0x2a
je 0x418548
cmp al, 0x2b
je 0x418548
cmp al, 0x40
je 0x418548
cmp al, 0x21
je 0x418548
cmp al, 0x29
je 0x4184bf
cmp al, 0x7c
lea edi, [esi + 1]
je 0x418440
lea esi, [esi]
lea edi, [edi]
test ebp, ebp
mov esi, edi
jns 0x417fe0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x418423
cmp byte [edi - 1], 0x29
jne 0x418407
mov edx, dword [esp + 0x40]
sub edx, 0x21
cmp edx, 0x1f
ja case.0x41806c.34
jmp dword [edx*4 + 0x418074]
mov dword [esp], edi
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
call fcn.00417180
xor ecx, ecx
test eax, eax
je 0x418230
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x4c]
ja 0x418214
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x54]
and ebp, 1
and ebx, 0xfffffffb
lea esi, [esi]
lea edi, [edi]
test ebp, ebp
mov edx, dword [esp + 0x54]
jne 0x41815a
mov edx, ebx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x50]
add eax, 4
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.00417180
test eax, eax
jne 0x418200
test ebp, ebp
mov eax, dword [esp + 0x54]
jne 0x41818b
mov eax, ebx
cmp esi, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
je 0x4181a7
xor edx, edx
cmp byte [esi - 1], 0x2f
je 0x418251
mov eax, edx
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], edx
call fcn.00417180
test eax, eax
je 0x41823a
cmp esi, dword [esp + 0x48]
je 0x418200
mov eax, dword [esp + 0x54]
test al, 1
jne 0x4181d3
mov eax, ebx
mov dword [esp + 0x10], eax
xor edx, edx
cmp byte [esi - 1], 0x2f
je 0x41823e
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
dec edx
mov dword [esp], edx
call fcn.00417180
test eax, eax
je 0x41823a
inc esi
cmp esi, dword [esp + 0x4c]
ja 0x418210
mov eax, dword [esp + 0x28]
jmp 0x418150
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov ecx, 1
test eax, eax
mov dword [esp + 0x28], eax
jne case.0x41806c.43
mov esi, esi
lea edi, [edi]
add esp, 0x2c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
jmp 0x418230
mov ecx, dword [esp + 0x54]
and ecx, 5
cmp ecx, 5
jne 0x4181df
mov edx, 1
jmp 0x4181df
mov ecx, dword [esp + 0x54]
and ecx, 5
cmp ecx, 5
jne 0x4181a5
mov edx, 1
jmp 0x4181a5
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x4c]
ja 0x41831b
mov ebp, dword [esp + 0x54]
and ebp, 0xfffffffb
test eax, eax
mov ebx, eax
je 0x4182c7
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x54]
test al, 1
jne 0x41829a
mov eax, ebp
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x50]
lea ecx, [ebx + 4]
mov dword [esp + 8], esi
mov eax, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call fcn.00417180
test eax, eax
je 0x418338
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418290
mov eax, dword [esp + 0x54]
test al, 1
jne 0x4182d1
mov eax, ebp
cmp esi, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
je 0x4182e9
xor edx, edx
cmp byte [esi - 1], 0x2f
je 0x418325
mov eax, edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], ecx
call fcn.00417180
xor ecx, ecx
test eax, eax
je 0x418230
inc esi
cmp esi, dword [esp + 0x4c]
ja 0x41831b
mov eax, dword [esp + 0x28]
jmp 0x418280
mov ecx, 1
jmp 0x418230
mov ebx, dword [esp + 0x54]
and ebx, 5
cmp ebx, 5
jne 0x4182e7
mov edx, 1
jmp 0x4182e7
test ebx, ebx
jne 0x41830b
jmp 0x4182c7
mov edi, 0x417ed0
mov ecx, 0xffffffff
test edi, edi
je 0x418230
mov dword [esp + 8], 0x493
mov dword [esp + 4], 0x417f10
mov dword [esp], 0x417f50
call sub.msvcrt.dll__assert
mov dword [esp], edi
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
call fcn.00417180
xor ecx, ecx
test eax, eax
je 0x418230
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edi
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_strcat
test byte [esp + 0x54], 1
mov edx, dword [esp + 0x54]
jne 0x4183c1
and edx, 0xfffffffb
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov dword [esp], eax
mov esi, dword [esp + 0x48]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
call fcn.00417180
xor ecx, ecx
test eax, eax
je 0x418230
mov edx, dword [esp + 0x28]
mov ecx, 1
mov eax, dword [edx]
mov dword [esp + 0x28], eax
test eax, eax
jne case.0x41806c.64
jmp 0x418230
mov dword [esp + 8], 0x438
mov dword [esp + 4], 0x417f10
mov dword [esp], 0x417f77
jmp 0x418369
mov dword [esp + 8], 0x437
mov dword [esp + 4], 0x417f10
mov dword [esp], 0x417f87
jmp 0x418369
test ebp, ebp
jne 0x418040
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
sub ebx, 0x3f
cmp ebx, 1
jbe 0x418463
mov edx, dword [esp + 0x24]
mov edi, esi
sub edi, edx
lea edx, [edi + 1]
cmp edx, 0x1f3b
lea eax, [edx + 4]
mov ecx, 0xffffffff
ja 0x418230
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edi, eax
mov edx, dword [esp + 0x24]
mov ecx, esi
mov eax, dword [esp + 0x24]
lea ebx, [edi + 4]
inc esi
mov dword [esp], ebx
mov dword [esp + 4], edx
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.0041b6c0
mov byte [eax], 0
mov ecx, dword [esp + 0x20]
mov dword [edi], 0
mov dword [esp + 0x20], edi
mov dword [ecx], edi
mov edi, esi
mov dword [esp + 0x24], esi
jmp 0x418040
dec ebp
lea edi, [esi + 1]
cmp ebp, 0xffffffff
jne 0x418040
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
sub ecx, 0x3f
cmp ecx, 1
jbe 0x4184e7
mov eax, dword [esp + 0x24]
mov ebx, esi
sub ebx, eax
lea edx, [ebx + 1]
cmp edx, 0x1f3b
lea eax, [edx + 4]
mov ecx, 0xffffffff
ja 0x418230
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov ecx, dword [esp + 0x24]
mov edx, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ecx
sub edx, eax
mov dword [esp + 8], edx
lea edx, [ebx + 4]
mov dword [esp], edx
call fcn.0041b6c0
mov byte [eax], 0
mov edi, dword [esp + 0x20]
mov dword [ebx], 0
mov dword [esp + 0x20], ebx
mov dword [edi], ebx
mov esi, esi
lea edi, [edi]
lea edi, [esi + 1]
jmp 0x418040
cmp byte [esi + 1], 0x28
jne 0x418020
inc ebp
jmp 0x418540
mov eax, dword [0x425390]
test eax, eax
je 0x4185ab
inc esi
movzx eax, byte [esi]
cmp al, 0x21
je 0x4185a5
mov edi, dword [0x425390]
test edi, edi
js 0x4185a1
cmp al, 0x5d
je 0x418597
lea esi, [esi]
lea edi, [edi]
inc esi
mov ecx, 0xffffffff
test al, al
je 0x418230
movzx eax, byte [esi]
cmp al, 0x5d
jne 0x418580
jmp 0x418540
inc esi
movzx eax, byte [esi]
cmp al, 0x5d
jne 0x418580
jmp 0x418540
cmp al, 0x5e
jne 0x418570
inc esi
movzx eax, byte [esi]
jmp 0x418570
mov dword [esp], 0x417170
call sub.msvcrt.dll_getenv
test eax, eax
setne dl
movzx ebx, dl
lea ecx, [ebx + ebx - 1]
mov dword [0x425390], ecx
jmp 0x41855e