Function at 0x100145a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp dword [0x1007d8a8], 0x156c
push ebx
push esi
push edi
mov dword [esp + 0x4c], ecx
jne 0x100145c7
mov eax, 0xfff9
mov word [0x1007d864], ax
mov ecx, dword [esp + 0x4c]
call fcn.10015560
movzx ecx, byte [0x1007d866]
movzx eax, word [0x1007d864]
sub ecx, eax
mov dword [0x1008e054], 0x1007f1a0
sub ecx, 4
mov dword [esp + 0x38], ecx
call fcn.10015560
mov bx, word [0x1007d864]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add bx, bx
sub bx, word [0x1007d8b4]
mov ecx, dword [esp + 0x38]
sub bx, 0x1d
add dword [0x1007d8f8], eax
mov word [0x1007d864], bx
call fcn.100156b0
sub bl, byte [0x1007d866]
mov edx, dword [esp + 0x38]
add bl, dl
mov esi, dword [0x1007d8b0]
mov byte [0x1007d866], bl
cmp dword [0x1007d8b8], esi
ja 0x1001466d
mov ecx, dword [0x1007d8b4]
mov eax, esi
sub eax, ecx
mov dword [0x1007d894], ecx
add eax, 0x212c
mov word [0x1007d864], ax
movzx eax, ax
sub eax, ecx
add eax, esi
mov dword [0x1007d8b4], eax
mov ecx, edx
call fcn.10015560
mov dx, word [0x1007d864]
sub esp, 8
mov ecx, dword [esp + 0x40]
add dx, dx
sub dx, word [0x1007d8b4]
sub dx, 0x1d
mov dword [0x1007d868], eax
push eax
mov word [0x1007d864], dx
call section..text
movzx esi, byte [0x1007d866]
add esp, 0xc
movzx eax, word [0x1007d864]
sub esi, eax
sub esi, 4
mov ecx, esi
call fcn.10015560
movzx ecx, word [0x1007d864]
mov edx, dword [0x1007d8b4]
cmp ecx, edx
mov edi, dword [0x1007d8b0]
mov ecx, dword [0x1007d884]
mov dword [esp + 0x44], eax
jb 0x100146e8
sub ecx, edi
mov dword [0x1007d884], ecx
mov eax, dword [0x1007d8a8]
sub eax, dword [0x1007d878]
fld qword [0x1007a708]
movzx ebx, dx
fst qword [esp + 0x50]
cmp eax, 0x300
jne 0x10014715
lea esi, [esi + edx*2]
add esi, 0xffffffbc
mov edx, esi
sub edx, dword [esp + 0x44]
jmp 0x10014724
imul edx, dword [esp + 0x44]
imul eax, edx, 0x76d8
mov edx, esi
sub edx, eax
add edx, 0xd
mov dword [esp + 0x44], ebx
mov dword [0x1007d8b4], edx
cmp ebx, edx
jb 0x10014749
sub ecx, edi
lea eax, [edi + 0x43]
add eax, edx
mov dword [0x1007d884], ecx
movzx eax, ax
mov dword [esp + 0x44], eax
mov ecx, esi
call fcn.100156b0
mov ebx, dword [0x1007d8b4]
mov dword [esp + 0x1c], eax
mov dword [0x1007d868], eax
mov eax, dword [esp + 0x44]
add eax, 0x43
movzx ecx, bx
add eax, ecx
mov dword [esp + 0x44], 0xa
movzx esi, ax
mov dword [esp + 0x38], eax
mov edx, esi
movzx eax, byte [0x1007d866]
sub edx, ebx
sub eax, esi
mov dword [esp + 0x30], esi
add eax, 0xffffffe3
mov dword [esp + 0x48], 0xb4
add eax, edi
sub edx, 4
mov dword [esp + 0x10], eax
mov dword [0x1007d8b0], eax
sub al, byte [esp + 0x38]
sub al, 7
cmp dword [0x1007d8a4], 6
mov byte [esp + 0xc], al
je 0x100147c2
mov eax, ecx
sub eax, dword [esp + 0x10]
add eax, 0xd
jmp 0x100147da
mov eax, dword [esp + 0x38]
mov edi, ebx
sub edi, dword [esp + 0x10]
add edi, dword [esp + 0x30]
mov dword [esp + 0x10], edi
mov dword [0x1007d8b0], edi
movzx eax, ax
sub ecx, eax
mov dword [esp + 0x2c], 0xb5
xor eax, eax
add ecx, 0x212c
cmp dword [0x1007d8a4], 6
mov dword [esp + 0x18], eax
je 0x10014806
mov al, bl
sub al, byte [esp + 0x1c]
add al, 0xd
jmp 0x1001481e
movzx eax, byte [esp + 0xc]
sub eax, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x1c], eax
mov dword [0x1007d868], eax
mov al, byte [esp + 0xc]
mov esi, dword [0x1007d8a8]
movzx eax, al
cmp esi, 0x156c
jne 0x1001485c
mov dword [esp + 0x38], eax
mov eax, dword [0x1007d8a4]
sub eax, ebx
mov ebx, dword [esp + 0x38]
add ebx, 0xfffffff9
add ebx, eax
mov eax, dword [esp + 0x38]
cmp esi, esi
jne 0x1001485c
sub eax, ebx
mov ebx, eax
mov dword [esp + 0x38], eax
add ebx, 0xfffffff9
add ebx, dword [0x1007d8a4]
fld1
jmp 0x10014862
fxch st(1)
sub esi, dword [0x1007d878]
sub dl, cl
inc dword [esp + 0x18]
add dl, 0xd
cmp esi, 0x300
jne 0x1001488d
mov ecx, dword [esp + 0x1c]
add bl, bl
sub dl, 0x44
add bl, dl
mov dl, bl
movzx ebx, bl
sub ebx, ecx
jmp 0x100148a5
mov eax, dword [esp + 0x1c]
mov ecx, eax
imul eax, ebx
movzx ebx, dl
mov dword [esp + 0x1c], ecx
imul eax, eax, 0x76d8
sub ebx, eax
xor eax, eax
add ebx, 0xd
test ecx, ecx
mov dword [esp + 0x20], ebx
mov dword [0x1007d8b4], ebx
sete al
movzx eax, ax
mov dword [esp + 0x38], eax
movzx eax, dl
cmp eax, ebx
jb 0x100148d2
sub dword [0x1007d884], ecx
lea edx, [ebx + 0x43]
add dl, cl
movzx eax, bx
mov ebx, dword [esp + 0x38]
sub ebx, eax
mov dword [esp + 0x30], eax
lea eax, [ebx - 7]
mov dword [esp + 0x38], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x14], eax
mov ebx, eax
test ecx, ecx
jne 0x10014909
mov eax, dword [esp + 0x38]
movzx ebx, ax
movzx eax, dl
sub ebx, eax
add ebx, 0x212c
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x38]
add eax, 0x212c
movzx edi, ax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov word [0x1007d864], ax
cmp esi, 0x300
jne 0x1001493c
add dl, dl
sub dl, al
sub dl, 0x37
jmp 0x1001495e
mov ecx, dword [esp + 0x38]
movzx eax, dl
movzx ecx, cl
imul ecx, eax
mov eax, dword [esp + 0x38]
mov dl, cl
shl cl, 2
add dl, cl
mov ecx, dword [esp + 0x1c]
shl dl, 3
add dl, 0xd
add dl, bl
xor ebx, ebx
test ax, ax
mov byte [0x1007d866], dl
sete bl
test ax, ax
jne 0x100149a3
movzx eax, dl
mov ebx, 0x212c
sub ebx, eax
cmp dword [0x1007d8a4], 6
je 0x10014993
mov esi, dword [esp + 0x20]
mov ebx, edi
sub ebx, esi
add ebx, 0xd
jmp 0x100149a7
mov esi, edi
sub esi, dword [esp + 0x20]
add esi, ebx
mov dword [0x1007d8b4], esi
jmp 0x100149a7
mov esi, dword [esp + 0x20]
fcomi st(1)
mov eax, dword [esp + 0x30]
movzx eax, ax
ja 0x10014b77
cmp eax, ecx
jbe 0x100149f2
mov eax, 0x2128
sub eax, edi
mov word [0x1007d864], ax
sub al, dl
mov edx, dword [esp + 0x14]
add al, bl
mov byte [0x1007d866], al
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x100149eb
cmp edx, eax
jb 0x100149eb
sub dword [0x1007d884], esi
lea edx, [eax + 0x43]
add edx, esi
sub ecx, eax
lea ebx, [ecx - 0x1d]
add ebx, edx
call fcn.100157b0
cmp dword [0x1007d8a4], 6
mov dl, byte [0x1007d866]
mov byte [esp + 0xc], dl
je 0x10014a24
movzx ecx, word [0x1007d864]
mov dword [esp + 0x38], ecx
movzx ecx, cx
movzx ebx, dl
mov eax, ecx
sub ebx, ecx
add ebx, 0xd
jmp 0x10014a42
movzx eax, dl
sub ax, word [0x1007d864]
add ax, bx
mov cx, ax
movzx eax, ax
mov dword [esp + 0x38], ecx
mov word [0x1007d864], cx
cmp ebx, 0x5229
jbe 0x10014a81
movzx ecx, ax
call fcn.10015560
movzx edx, word [0x1007d864]
mov ebx, eax
mov al, byte [0x1007d866]
mov ecx, 0xd
sub ecx, ebx
mov dword [0x1007d8b4], ebx
add dx, cx
mov byte [esp + 0xc], al
mov dword [esp + 0x38], edx
mov word [0x1007d864], dx
jmp 0x10014a87
mov ebx, dword [0x1007d8b4]
cmp dword [esp + 0x18], 0x1b
fsub st(1), st(0)
fxch st(1)
fst qword [esp + 0x30]
jge 0x10014b2b
imul ebx, dword [0x1007d868]
fstp st(0)
push 0x4a2
push 0x1007ea08
push str.Noth
fstp st(0)
imul eax, ebx, 0x76d8
mov dword [0x1007d868], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
fld qword [esp + 0x30]
mov al, byte [0x1007d866]
fld1
fxch st(1)
mov cx, word [0x1007d864]
mov ebx, dword [0x1007d8b4]
mov byte [esp + 0xc], al
mov eax, dword [0x1007d868]
mov edx, eax
sub edx, ebx
movzx esi, cx
sub edx, 4
mov dword [esp + 0x1c], eax
mov eax, dword [0x1007d8a8]
mov edi, esi
mov dword [esp + 0x38], eax
cmp edx, edi
jae 0x10014b31
movzx eax, byte [esp + 0xc]
sub esi, ebx
sub eax, edi
add eax, 0xffffffe3
add edx, eax
lea eax, [esi + 0xd]
mov byte [esp + 0xc], dl
sub byte [esp + 0xc], al
mov cx, ax
sub byte [esp + 0xc], 7
movzx edi, ax
jmp 0x10014b46
mov ecx, dword [esp + 0x38]
jmp 0x10014ae3
mov edi, esi
cmp eax, 0x156c
jne 0x10014b46
mov eax, dword [0x1007d8a4]
sub eax, ebx
lea ebx, [edx - 7]
add ebx, eax
movzx esi, di
cmp dword [0x1007d8b8], esi
ja 0x10014b65
movzx eax, byte [esp + 0xc]
mov edx, esi
sub edx, eax
mov dword [0x1007d894], eax
add edx, 0x212c
mov eax, dword [0x1007d8b0]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
jmp 0x10014860
fstp st(1)
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
cmp dword [0x1007d8b8], eax
ja 0x10014ba4
movzx eax, dl
mov dword [0x1007d894], eax
mov al, cl
sub al, dl
add al, 0x16
add al, al
mov byte [0x1007d866], al
mov dl, al
mov eax, dword [esp + 0x20]
movzx ebx, dl
sub ebx, eax
mov eax, dword [esp + 0x30]
sub ebx, 4
movzx eax, ax
mov dword [esp + 0x38], ebx
cmp ebx, dword [esp + 0x20]
jbe 0x10014bfd
sub cl, dl
mov edx, dword [esp + 0x30]
add edx, 0x43
add cl, bl
add edx, esi
mov byte [0x1007d866], cl
cmp dword [0x1007d8a4], 6
je 0x10014be9
mov eax, edi
sub eax, esi
add eax, 0xd
mov dword [esp + 0x38], eax
movzx eax, dx
jmp 0x10014bfb
movzx eax, dx
mov dword [esp + 0x30], eax
mov eax, edi
sub eax, esi
lea esi, [ebx + eax]
mov eax, dword [esp + 0x30]
mov dl, cl
movzx eax, ax
cmp eax, esi
jb 0x10014c0a
sub dword [0x1007d884], edi
mov ebx, dword [esp + 0x38]
mov edi, ebx
movzx ecx, si
mov eax, ebx
sub edi, esi
mov word [0x1007d864], cx
sub eax, ecx
add edi, 0xfffffff9
sub eax, 7
cmp dword [0x1007d8ec], 6
mov dword [0x1007d8b4], eax
je 0x10014c4a
mov esi, dword [esp + 0x10]
movzx eax, dl
sub ax, si
add ax, 0xd
mov word [0x1007d864], ax
jmp 0x10014c53
movzx esi, dl
sub esi, dword [esp + 0x10]
add esi, ecx
mov ecx, ebx
call fcn.10015990
mov ebx, eax
mov eax, dword [0x1007d8a8]
mov dword [esp + 0x20], eax
cmp eax, 0x156c
mov eax, dword [0x1007d8a4]
mov dword [0x1007d8b4], ebx
mov dword [esp + 0x1c], eax
jne 0x10014c84
mov ecx, eax
sub ecx, edi
lea edi, [esi - 7]
add edi, ecx
mov eax, 0x100692d0
mov ecx, 0x10015cf0
add ax, cx
mov ecx, str._n_t_t_t_t_t
mov dword [esp + 0x30], ecx
movzx ecx, cl
movzx edx, ax
add edx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xffffffbc
mov dword [esp + 0x14], eax
add edx, ecx
mov word [0x1007d864], ax
cmp dword [0x1007d8b8], edx
ja 0x10014cde
mov ebx, edx
mov dword [0x1007d894], edi
sub ebx, edi
add ebx, 0x212c
mov eax, ebx
mov dword [0x1007d8b4], ebx
sub eax, edi
lea edi, [edx + eax]
mov eax, dword [esp + 0x14]
movzx ecx, ax
mov eax, str._n_t_t_t_t_t
mov dword [esp + 0x38], ecx
mov byte [esp + 0xc], al
cmp dword [0x1007d900], edx
ja 0x10014d44
mov ecx, dword [esp + 0x18]
movzx eax, al
mov dword [0x1007d8dc], ecx
mov cx, dx
sub cx, ax
mov eax, 0x212c
add cx, ax
mov ax, cx
mov byte [esp + 0xc], cl
mov dword [esp + 0x14], eax
mov word [0x1007d864], ax
mov eax, str._n_t_t_t_t_t
sub byte [esp + 0xc], al
mov al, byte [esp + 0xc]
add al, dl
movzx ecx, cx
mov byte [esp + 0xc], al
mov byte [esp + 0x30], al
mov dword [esp + 0x38], ecx
mov eax, 0x10079e40
add esi, 0xffffffe3
sub eax, 0x1008e03c
add eax, 0x100780b0
add edx, eax
movzx eax, cx
mov ecx, dword [esp + 0x30]
movzx ecx, cl
sub ecx, eax
mov eax, dword [0x1007d8f0]
sub eax, dword [0x1007d8c0]
add esi, ecx
mov dword [esp + 0x18], esi
mov dword [0x1007d8b0], esi
cmp eax, 0x300
jne 0x10014d97
movzx eax, byte [esp + 0xc]
lea edx, [edx + eax*2]
mov eax, dword [esp + 0x38]
add edx, 0xffffffbc
mov cl, dl
sub cl, al
jmp 0x10014db8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
movzx eax, al
movzx ecx, cl
imul ecx, eax
mov al, cl
shl al, 2
add cl, al
mov eax, dword [esp + 0x38]
shl cl, 3
add cl, dl
fldz
add cl, 0xd
fld qword [0x1007a6f8]
fld qword [0x1007a700]
fld qword [0x1007a708]
movzx eax, ax
mov dword [esp + 0x30], eax
jmp 0x10014dde